From e3ff52ad89b1ac8549ee4b2b679cf9d7a2f96d29 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 27 Feb 2014 19:37:16 -0500 Subject: Improve session creation --- controllers/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controllers') diff --git a/controllers/base.php b/controllers/base.php index a59220d3..da4ee8ae 100644 --- a/controllers/base.php +++ b/controllers/base.php @@ -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'); -- cgit v1.2.3