From ccd177ada6823c27a6408427f19c238fd701c39e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 6 Dec 2017 16:19:11 -0800 Subject: Store PHP sessions in the database --- app/Middleware/AuthenticationMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Middleware') diff --git a/app/Middleware/AuthenticationMiddleware.php b/app/Middleware/AuthenticationMiddleware.php index 499843fd..54652e57 100644 --- a/app/Middleware/AuthenticationMiddleware.php +++ b/app/Middleware/AuthenticationMiddleware.php @@ -38,7 +38,7 @@ class AuthenticationMiddleware extends BaseMiddleware if ($this->request->isAjax()) { $this->response->text('Not Authorized', 401); } else { - $this->sessionStorage->redirectAfterLogin = $this->request->getUri(); + session_set('redirectAfterLogin', $this->request->getUri()); $this->response->redirect($this->helper->url->to('AuthController', 'login')); } } -- cgit v1.2.3