1
0
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:
Marco
2018-03-25 05:29:13 +02:00
parent be5b744470
commit 6d34606336

View File

@@ -451,10 +451,12 @@ $url = 'https://www.example.com/verify_email?selector=' . \urlencode($selector)
```php
$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