Index: branches/unlabeled/unlabeled-1.50.2/core/kernel/session/session.php =================================================================== diff -u -r6235 -r6367 --- branches/unlabeled/unlabeled-1.50.2/core/kernel/session/session.php (.../session.php) (revision 6235) +++ branches/unlabeled/unlabeled-1.50.2/core/kernel/session/session.php (.../session.php) (revision 6367) @@ -412,7 +412,7 @@ function CheckIfCookiesAreOn() { // $this->CheckDuplicateCookies(); - if ($this->Mode == smGET_ONLY) + if ($this->Mode == smGET_ONLY) { //we don't need to bother checking if we would not use it $this->CookiesEnabled = false; @@ -522,8 +522,8 @@ break; } } - + $this->CachedSID = $sid; return $this->CachedSID; } @@ -689,6 +689,7 @@ $last_env = $this->Application->BuildEnv($t, Array('m_opener' => 'u', '__URLENCODE__' => 1), 'all'); $last_template = basename($_SERVER['PHP_SELF']).'|'.substr($last_env, strlen(ENV_VAR_NAME) + 1); $this->StoreVar('last_template', $last_template); + $this->StoreVar('last_url', $_SERVER['REQUEST_URI']); $this->StoreVar('last_env', substr($this->Application->BuildEnv($t, Array('__URLENCODE__' => 1), 'all'), strlen(ENV_VAR_NAME)+1)); }