From 92059bb8aa41896a15af011533086190ad6719e1 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Wed, 28 Feb 2024 10:33:43 -0500 Subject: [PATCH] Clear session on impersonation exception --- src/Services/ImpersonateManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Services/ImpersonateManager.php b/src/Services/ImpersonateManager.php index 5bdd05a..2ea7f50 100644 --- a/src/Services/ImpersonateManager.php +++ b/src/Services/ImpersonateManager.php @@ -122,6 +122,7 @@ public function take($from, $to, $guardName = null) } catch (\Exception $e) { unset($e); + $this->clear(); return false; }