mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-07 00:26:28 +02:00
Improve code style
This commit is contained in:
@@ -503,13 +503,16 @@ final class Auth extends UserManager {
|
|||||||
$params = $this->createCookieSettings();
|
$params = $this->createCookieSettings();
|
||||||
|
|
||||||
// cause the session cookie to be deleted
|
// cause the session cookie to be deleted
|
||||||
$cookie = new Cookie(session_name());
|
$cookie = new Cookie(\session_name());
|
||||||
|
|
||||||
if (!empty($params['path'])) {
|
if (!empty($params['path'])) {
|
||||||
$cookie->setPath($params['path']);
|
$cookie->setPath($params['path']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($params['domain'])) {
|
if (!empty($params['domain'])) {
|
||||||
$cookie->setDomain($params['domain']);
|
$cookie->setDomain($params['domain']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$cookie->setHttpOnly($params['httponly']);
|
$cookie->setHttpOnly($params['httponly']);
|
||||||
$cookie->setSecureOnly($params['secure']);
|
$cookie->setSecureOnly($params['secure']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user