Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/session/session.php
Show First 20 Lines • Show All 696 Lines • ▼ Show 20 Line(s) | |||||
$this->SetSessionCookie(); //will remove the cookie due to value (sid) is empty | $this->SetSessionCookie(); //will remove the cookie due to value (sid) is empty | ||||
} | } | ||||
$this->SetSession(true); //will create a new session, true to force | $this->SetSession(true); //will create a new session, true to force | ||||
} | } | ||||
function NeedQueryString($use_cache = 1) | function NeedQueryString($use_cache = 1) | ||||
{ | { | ||||
if ($this->CachedNeedQueryString != null && $use_cache) { | if ( $this->CachedNeedQueryString !== null && $use_cache ) { | ||||
return $this->CachedNeedQueryString; | return $this->CachedNeedQueryString; | ||||
} | } | ||||
$result = false; | $result = false; | ||||
switch ($this->Mode) { | switch ($this->Mode) { | ||||
case self::smAUTO: | case self::smAUTO: | ||||
if (!$this->CookiesEnabled) { | if (!$this->CookiesEnabled) { | ||||
$result = true; | $result = true; | ||||
▲ Show 20 Lines • Show All 408 Lines • ▼ Show 20 Line(s) | |||||
$ret = $user_id > 0; | $ret = $user_id > 0; | ||||
if (($this->RecallVar('admin') == 1 || defined('ADMIN')) && ($user_id == USER_ROOT)) { | if (($this->RecallVar('admin') == 1 || defined('ADMIN')) && ($user_id == USER_ROOT)) { | ||||
$ret = true; | $ret = true; | ||||
} | } | ||||
return $ret; | return $ret; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |