diff --git a/src/Application.php b/src/Application.php index 6d5efaea..f36342e2 100644 --- a/src/Application.php +++ b/src/Application.php @@ -66,11 +66,6 @@ public function run(\Minz\Request $request): mixed /** @var ?string */ $session_token = $request->cookie('session_token'); - if (!$session_token) { - /** @var ?string */ - $session_token = $request->cookie('flusio_session_token'); - } - if ( !$session_token && auth\CurrentUser::sessionToken() && @@ -117,7 +112,6 @@ public function run(\Minz\Request $request): mixed $response = \Minz\Response::redirect('login'); $response->removeCookie('session_token'); - $response->removeCookie('flusio_session_token'); return $response; } diff --git a/src/controllers/Sessions.php b/src/controllers/Sessions.php index bd0a2f9b..4abb4b8b 100644 --- a/src/controllers/Sessions.php +++ b/src/controllers/Sessions.php @@ -216,7 +216,6 @@ public function delete(Request $request): Response $response = Response::redirect('home'); $response->removeCookie('session_token'); - $response->removeCookie('flusio_session_token'); return $response; } }