From 6d346063369aa5ce71b32327cf6855425da78ce9 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 25 Mar 2018 05:29:13 +0200 Subject: [PATCH] Update documentation on how to destroy the entire session --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d62879e..95a1053 100644 --- a/README.md +++ b/README.md @@ -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