mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-03 14:47:30 +02:00
Update documentation on how to destroy the entire session
This commit is contained in:
@@ -451,10 +451,12 @@ $url = 'https://www.example.com/verify_email?selector=' . \urlencode($selector)
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
$auth->logOut();
|
$auth->logOut();
|
||||||
// or
|
```
|
||||||
$auth->logOutAndDestroySession();
|
|
||||||
|
|
||||||
// user has been signed out
|
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:
|
||||||
|
|
||||||
|
```php
|
||||||
|
$auth->destroySession();
|
||||||
```
|
```
|
||||||
|
|
||||||
### Accessing user information
|
### Accessing user information
|
||||||
|
Reference in New Issue
Block a user