EllisLab text mark
Advanced Search
     
Session Unserialize Error
Posted: 07 November 2009 10:12 AM   [ Ignore ]
Avatar
Joined: 2007-06-06
511 posts
ERROR 2009-11-05 07:04:52 --> SeverityNotice  --> unserialize() [<a href='function.unserialize'>function.unserialize</a>]Error at offset 176 of 176 bytes /system/libraries/Session.php 708 

I often see this error coming by in the log files. Any ideas on what and how. My app seems to work fine but sometimes this error pops up in the log files. It seems to happen only with bots and not normal browsers but I’ll have to double check this to be sure.

 Signature 

In need for a good host for your Codeigniter Apps? Try Webfaction! It’s fast, reliable, technically sound, in the USA, EU and Asia.

 
Posted: 24 December 2009 09:29 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2008-01-23
27 posts

I have the same problem!

ERROR 2009-12-24 01:45:38 --> SeverityNotice  --> unserialize() [<a href='function.unserialize'>function.unserialize</a>]Error at offset 101 of 112 bytes /privacy/system/libraries/Session.php 708 

100 errors per day!!!

 Signature 

Linux / html / css / javascript trick and tips

 
Posted: 04 June 2010 11:45 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-04-24
2 posts

I was having the same problem, and it turned out to be an issue with mbstring breaking the Encrypt library.  I found a solution (and talked about my problem) in this post:

http://ellislab.com/forums/viewthread/91456/#758252

 
Posted: 08 July 2012 11:36 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2011-09-21
33 posts

I have the same problem too

but I think this caused by the php configuration
I will try to set more memory for the php and check this and if success I will be back to tell you

 Signature 

DNS Call

 
Posted: 30 October 2012 06:27 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2010-10-28
1 posts

The problem may also appear when you’re using UTF-8 and the ci_sessions table has incorrect charset (ex. latin1) set.

 
Posted: 30 October 2012 11:57 AM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2009-02-19
3819 posts

It can also happen if you are only using cookies for storing session data and the (serialized) data exceeds the 4k max that cookies can store.  It breaks the serialized array being stored as the string gets truncated, so it can’t unserialize it.

 Signature