diff --git a/core/Session.php b/core/Session.php index 8e126c2c6..112518411 100644 --- a/core/Session.php +++ b/core/Session.php @@ -241,7 +241,10 @@ class Session { * Clear all the values */ public static function clear_all() { - return self::current_session()->inst_clearAll(); + $ret = self::current_session()->inst_clearAll(); + self::$default_session = null; + + return $ret; } /**