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

[eluser]Unknown[/eluser]
Hi, after almost five hours of debugging I've come upon something strange.

My problem was that once I enabled the session library the application could only load as long there were no cookie set.
Everytime a cookie was set the application would just show a blank page, at first I thought it had to do with my Apache configuration and the header. Absolutely nothing was logged in apache, php etc.

I finally tracked it down to the Session.php core file.
After trying my way down the methods, I found that
Code:
$data = @unserialize(strip_slashes($data));
would just kill the application without warning or display errors.

Right now I've just done a quick fix and removed both serialize and unserialize with a json_encode and json_decode.
Works like a charm.

Anyone else had the same problem or now what could be the reason of this?


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