Merge pull request #11096 from nextcloud/bugfix/11080/set-cookie-null-argument
replace setcookie value with '' instead of null.
This commit is contained in:
commit
c44368b9a3
|
@ -441,7 +441,7 @@ class OC {
|
|||
// session timeout
|
||||
if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {
|
||||
if (isset($_COOKIE[session_name()])) {
|
||||
setcookie(session_name(), null, -1, self::$WEBROOT ? : '/');
|
||||
setcookie(session_name(), '', -1, self::$WEBROOT ? : '/');
|
||||
}
|
||||
\OC::$server->getUserSession()->logout();
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ class Internal extends Session {
|
|||
try {
|
||||
$this->invoke('session_start');
|
||||
} catch (\Exception $e) {
|
||||
setcookie($this->invoke('session_name'), null, -1, \OC::$WEBROOT ?: '/');
|
||||
setcookie($this->invoke('session_name'), '', -1, \OC::$WEBROOT ?: '/');
|
||||
}
|
||||
restore_error_handler();
|
||||
if (!isset($_SESSION)) {
|
||||
|
|
Loading…
Reference in New Issue