Permalink
Browse files

Enabled session.cookie_httponly/session.cookie_secure settings at php…

….ini.
  • Loading branch information...
ITOH Takashi
ITOH Takashi committed Apr 28, 2014
1 parent e2c9f69 commit 6469c2fb9cf35823610fb70b9d6c118831a538e8
Showing with 4 additions and 1 deletion.
  1. +4 −1 html/core/XCube_Session.class.php
@@ -79,7 +79,10 @@ function start()
if (!empty($this->mSessionLifetime) && isset($_COOKIE[$this->mSessionName])) {
// Refresh lifetime of Session Cookie
setcookie($this->mSessionName, session_id(), time() + $this->mSessionLifetime, $this->_cookiePath());
$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']);
}
}

0 comments on commit 6469c2f

Please sign in to comment.