Improve session creation

This commit is contained in:
Frédéric Guillot
2014-02-27 19:37:16 -05:00
parent 2f6b9353d5
commit e3ff52ad89
4 changed files with 25 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ abstract class Base
public function beforeAction($controller, $action)
{
$this->session->open(dirname($_SERVER['PHP_SELF']));
$this->session->open(dirname($_SERVER['PHP_SELF']), SESSION_SAVE_PATH);
if (! isset($_SESSION['user']) && ! $this->noAuthAllowed($controller, $action)) {
$this->response->redirect('?controller=user&action=login');