Never tried.
If you get it to work with one cookie it's maybe worth a try.
---snip---
ms = new MemoryStream();
xmls.Serialize(ms, gd);
var helpcvalue = Encrypt(Encoding.UTF8.GetString(ms.ToArray()));
ms.Close();
try
{
int helpcvallength = helpcvalue.Length;
int helpcvalAnzahl = (helpcvallength / 4000);
string[] helpcvalsplit = new string[helpcvallength];
setCookie(gd.GameName + "A", (helpcvalAnzahl + 1).ToString(), 500);
for (int i = 0; i < helpcvalAnzahl; i++)
{
helpcvalsplit[i] = helpcvalue.Substring(i * 4000, 4000);
setCookie(gd.GameName + i.ToString(), helpcvalsplit[i], 500);
}
helpcvalsplit[helpcvalAnzahl] = helpcvalue[(helpcvalAnzahl * 4000)..];
setCookie(gd.GameName + helpcvalAnzahl.ToString(), helpcvalsplit[helpcvalAnzahl], 500);
RetVal = "Cookie OK: " + gd.LastSaveTime;
}
catch (Exception)
{
---snap---