mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Remove session keys from unit tests
This commit is contained in:
parent
60a3edc994
commit
56b37b7cbc
2 changed files with 8 additions and 47 deletions
|
|
@ -423,6 +423,7 @@ class Session
|
|||
{
|
||||
// Get session parameters.
|
||||
list($lifetime, $refresh_interval, $domain, $path, $secure, $samesite) = self::_getParams();
|
||||
$domain = self::getDomain() ?: preg_replace('/:\\d+$/', '', strtolower($_SERVER['HTTP_HOST']));
|
||||
$lifetime = $lifetime ? ($lifetime + time()) : 0;
|
||||
$options = array(
|
||||
'expires' => $lifetime,
|
||||
|
|
@ -451,6 +452,8 @@ class Session
|
|||
self::_setCookie(session_name(), session_id(), $options);
|
||||
self::destroyCookiesFromConflictingDomains(array(session_name()));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue