From 83c74689a3a04a382a416b806a20eba092e1abde Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 25 Mar 2018 05:32:32 +0200 Subject: [PATCH] Document method 'logOutEverywhere' from class 'Auth' --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 95a1053..5b64e1e 100644 --- a/README.md +++ b/README.md @@ -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: