Welcome Guest, Not a member yet? Register   Sign In
Upgrading Codeigniter from 1.7.3 to 2.2.2 - Issue with sessions library
#7

[eluser]adela[/eluser]
[quote author="CroNiX" date="1410894900"]It is better to use the session database driver as it can store an infinite amount of session data, whereas cookies have a hard limit, which is different for each browser, but it's safe to assume 2kb max data if using cookies. If you go over that, it could break the session depending on the browser. If you encrypt the session data, it also takes a lot more space to store it.[/quote]

What you mean by 2 KB? I've read on few different places and even on the EllisLab Session guide that it's around 4 KB.

Here is what its said on the Session codeigniter guide:

"Cookies can only hold 4KB of data, so be careful not to exceed the capacity. The encryption process in particular produces a longer data string than the original so keep careful track of how much data you are storing."

So, is it actually 2 or 4 KB is safe too ? My session cookie after encryption is around 3 KB.


Messages In This Thread
Upgrading Codeigniter from 1.7.3 to 2.2.2 - Issue with sessions library - by El Forum - 09-29-2014, 03:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB