Index: branches/5.1.x/core/kernel/session/session.php =================================================================== diff -u -N -r13581 -r13782 --- branches/5.1.x/core/kernel/session/session.php (.../session.php) (revision 13581) +++ branches/5.1.x/core/kernel/session/session.php (.../session.php) (revision 13782) @@ -1,6 +1,6 @@ RecallVar('user_id'); if ($user_id == USER_GUEST || $user_id === false) { // -2 (when not logged in), false (when after u:OnLogout event) - $session->StoreVar($var_name, $var_value); + $session->StoreVar($var_name, $var_value, $optional); return ; } @@ -1297,9 +1298,9 @@ } } - function StorePersistentVar($name, $value) + function StorePersistentVar($name, $value, $optional = false) { - $this->Storage->StorePersistentVar($this, $name, $value); + $this->Storage->StorePersistentVar($this, $name, $value, $optional); } function LoadPersistentVars()