1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-06 08:07:27 +02:00

Improve code style

This commit is contained in:
Marco
2017-10-18 22:47:24 +02:00
parent fa75811679
commit 1169856217

View File

@@ -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']);