CodeIgniter Forums
Session default to database error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Session default to database error (/showthread.php?tid=13394)



Session default to database error - El Forum - 11-20-2008

[eluser]timpisti[/eluser]
Hi.

My problem is when I set the session to use the database, the set_userdata method is working, but the userdata don't getted, when I try to read it.

When the session set to use the default way, the session data is showed perfectly, but when I set session handling into database, the session data is lost. As I see, it is successfully set in the database, but somehow the read go false without any error.

Please help, thank you.

Timpisti


Session default to database error - El Forum - 11-20-2008

[eluser]timpisti[/eluser]
Okay, I figured out.

When the session data contain a special character, the serializer stop, so wrong serialized data will set in the database.