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