Page 1 of 1

Bizarre session based error

Posted: Fri Sep 07, 2007 7:24 am
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.

Posted: Fri Sep 07, 2007 12:20 pm
by Christopher
"s:956" looks like serialized data that has not been unserialized. Are you using the stock PHP session manager? What OS/webserver?