1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-30 21:00:13 +02:00

Document method 'logOutEverywhere' from class 'Auth'

This commit is contained in:
Marco
2018-03-25 05:32:32 +02:00
parent 6d34606336
commit 83c74689a3

View File

@@ -451,6 +451,15 @@ $url = 'https://www.example.com/verify_email?selector=' . \urlencode($selector)
```php
$auth->logOut();
// or
try {
$auth->logOutEverywhere();
}
catch (\Delight\Auth\NotLoggedInException $e) {
// not logged in
}
```
Additionally, if you store custom information in the session as well, and if you want that information to be deleted, you can destroy the entire session by calling a second method: