83 $name = $this->xoops->getConfig(
'session_name');
85 $expire = intval($this->xoops->getConfig(
'session_expire'));
86 $expire = ($expire>0) ? $expire : 300;
90 $secure = $this->httpRequest->is(
'ssl');
92 session_cache_expire($expire);
94 session_set_cookie_params(0,
$path, $domain, $secure,
true);
97 session_set_save_handler($sessionHandler);
99 session_register_shutdown();
115 if (!$this->fingerprint->checkSessionPrint($this)) {
122 $this->sessionUser->establish();
126 if ((rand(1, 100) <= 5)) {
139 $this->fingerprint->checkSessionPrint($this);
151 if ($this->
has(
'SESSION_MANAGER_OBSOLETE')) {
156 $this->
set(
'SESSION_MANAGER_OBSOLETE',
true);
157 $this->
set(
'SESSION_MANAGER_EXPIRES', time() + 10);
160 $sessionId = session_id();
161 session_write_close();
164 session_id($sessionId);
168 session_regenerate_id(
false);
171 $this->
remove(
'SESSION_MANAGER_OBSOLETE');
172 $this->
remove(
'SESSION_MANAGER_EXPIRES');
184 session_regenerate_id(
true);
195 if ($this->
has(
'SESSION_MANAGER_OBSOLETE') && !$this->
has(
'SESSION_MANAGER_EXPIRES')) {
200 if ($this->
get(
'SESSION_MANAGER_EXPIRES', time()+10) < time()) {
228 public function get(
$name, $default = null)
$_SESSION['RF']["verify"]