Set path in cookie.
This commit is contained in:
parent
d70d4f435e
commit
9e9c323acd
|
@ -166,8 +166,8 @@ class Session implements Emitter {
|
|||
unset($_COOKIE["oc_username"]); //TODO: DI
|
||||
unset($_COOKIE["oc_token"]);
|
||||
unset($_COOKIE["oc_remember_login"]);
|
||||
setcookie('oc_username', '', time()-3600);
|
||||
setcookie('oc_token', '', time()-3600);
|
||||
setcookie('oc_remember_login', '', time()-3600);
|
||||
setcookie('oc_username', '', time()-3600, \OC::$WEBROOT);
|
||||
setcookie('oc_token', '', time()-3600, \OC::$WEBROOT);
|
||||
setcookie('oc_remember_login', '', time()-3600, \OC::$WEBROOT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue