Permalink
Browse files

in case of less than PHP5.2

  • Loading branch information...
ITOH Takashi
ITOH Takashi committed May 8, 2014
1 parent 6469c2f commit 72795873769df5e932e4040c8454544425fb4cd2
Showing with 8 additions and 2 deletions.
  1. +8 −2 html/core/XCube_Session.class.php
@@ -81,8 +81,14 @@ function start()
// Refresh lifetime of Session Cookie
$session_params = session_get_cookie_params();
!$session_params['domain'] and $session_params['domain'] = null;
setcookie($this->mSessionName, session_id(), time() + $this->mSessionLifetime, $this->_cookiePath(),
$session_params['domain'], $session_params['secure'], $session_params['httponly']);
$session_cookie_params = array(
$this->mSessionName, session_id(), time() + $this->mSessionLifetime, $this->_cookiePath(),
$session_params['domain'], $session_params['secure']
);
if (isset($session_params['httponly'])){
$session_cookie_params[] = $session_params['httponly'];
}
call_user_func_array('setcookie', $session_cookie_params);
}
}

0 comments on commit 7279587

Please sign in to comment.