mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 22:27:30 +02:00
Document method 'logOutEverywhere' from class 'Auth'
This commit is contained in:
@@ -451,6 +451,15 @@ $url = 'https://www.example.com/verify_email?selector=' . \urlencode($selector)
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
$auth->logOut();
|
$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:
|
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:
|
||||||
|
Reference in New Issue
Block a user