Welcome Guest, Not a member yet? Register   Sign In
Error with _unserialize in Session.php
#2

[eluser]CroNiX[/eluser]
You could be running out of room to store your sessions. If you are only using cookies, they can only hold 4k of data (that's after it's encrypted - which is larger than preenctyption). So if it's too big, your data will get truncated in the cookie and then it can't unserialize it because it's an incomplete serialized string now.

This can be avoided by using the db for storing your sessions as it's not limited to the cookie size as then it's only storing the session hash in the cookie instead of the data. This is a lot more secure as well since you can't snoop/alter the data in the cookie.


Messages In This Thread
Error with _unserialize in Session.php - by El Forum - 11-05-2012, 02:33 PM
Error with _unserialize in Session.php - by El Forum - 11-05-2012, 02:50 PM
Error with _unserialize in Session.php - by El Forum - 11-05-2012, 02:56 PM
Error with _unserialize in Session.php - by El Forum - 11-05-2012, 02:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB