Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

In my workaround I split my savefile into several cookies. This allows you to bypass the memory limit.
But of course that's not a nice solution either.

Ah nice, any idea if that works for iOS/iFrames?

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---