mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-23 13:23:00 +09:00
update cookie's httponly param value
This commit is contained in:
1 parent
e4d9f6378b
commit
26931dd0b2
1 file changed
+10
@@ -24,6 +24,16 @@ class Box_Session
|
||||
array($handler, 'gc')
|
||||
);
|
||||
if(php_sapi_name() !== 'cli'){
|
||||
$currentCookieParams = session_get_cookie_params();
|
||||
$currentCookieParams["httponly"] = true;
|
||||
|
||||
session_set_cookie_params(
|
||||
$currentCookieParams["lifetime"],
|
||||
$currentCookieParams["path"],
|
||||
$currentCookieParams["domain"],
|
||||
$currentCookieParams["secure"],
|
||||
$currentCookieParams["httponly"]
|
||||
);
|
||||
session_start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user