Store PHP sessions in the database
This commit is contained in:
committed by
Frédéric Guillot
parent
421531bd4f
commit
ccd177ada6
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user