if (!is_object(self::$_instance)) {
if (isset($_SESSION['Utils'])) {
self::$_instance = unserialize($_SESSION['Utils']);
- file_put_contents('/tmp/dump', 'Unserialize called: '.var_export($this, true), FILE_APPEND);
+ file_put_contents('/tmp/dump', 'Unserialize called: '.var_export(self::$_instance, true), FILE_APPEND);
} else {
self::$_instance = new Utils();
}
exit;
session_unset();
session_destroy();
- self::$_instance = null;
+ self::$_instance->user = null;
self::$_instance->is_admin = false;
$_SESSION['Utils'] = serialize(self::$_instance);
} else {