From abe50eb26a5acdb91c6b7d70128454eef357a50a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Oct 2010 03:41:46 +0000 Subject: [PATCH] BUGFIX Unset $default_session when using Session::clear_all() (from r111049) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112887 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/Session.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } /**