Bizarre session based error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
woody_jThemeGroup
Forum Newbie
Posts: 1
Joined: Fri Sep 07, 2007 7:09 am

Bizarre session based error

Post by woody_jThemeGroup »

Is anyone aware of PHP cookies or sessions losing data integrity, at seamingly random times?

We have an intermittent problem in our CMS, in which the following value finds its way into almost any $_POST, $_GET or $_REQUEST variable.

"s:956"

If we kill the session, it all behaves itself.

We have been banging our heads together trying to solve this and got nowhere. All we know is, its definitely a back-end problem, either in PHP itself, or Apache.

It seems very odd that it is session-dependent, but the thing that's really confusing is that it is impossible to replicate. It doesn't seem to have any obvious triggers, and parts of the CMS that work fine for days or weeks, will suddenly begin producing this error.........

Our CMS does use setcookie() at some point, but otherwise we're only using the standard session functionality, i.e. 'session_register()' and '$_SESSION[]' to retrieve session data.

Can anybody can give us a comprehensive answer?

Thanks.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

"s:956" looks like serialized data that has not been unserialized. Are you using the stock PHP session manager? What OS/webserver?
(#10850)
Post Reply