From c9e07fc5059e08f7772d71189dbf65bc3a9a5211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Kooman?= Date: Thu, 11 Jul 2024 12:41:21 +0200 Subject: [PATCH] allow easy means to extract the current "Session ID" --- src/Session.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Session.php b/src/Session.php index 3e568b3..1cdc3e0 100644 --- a/src/Session.php +++ b/src/Session.php @@ -103,6 +103,11 @@ class Session $this->activeSession = $activeSession; } + public function sessionId(): ?string + { + return $this->activeSession ? $this->activeSession->sessionId() : null; + } + public function stop(): void { if (null === $activeSession = $this->activeSession) { -- 2.45.2