From f2dbf9181ddcafe2cf1884eac2acbfd0a4d2d08d Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 20 Jan 2015 14:28:16 +0200 Subject: [PATCH] Fix session cookie path for login --- admin.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin.php b/admin.php index 0a981596..57f547a8 100644 --- a/admin.php +++ b/admin.php @@ -94,6 +94,7 @@ class AdminPlugin extends Plugin if (substr($this->uri->route(), 0, strlen($this->base)) == $this->base) { // Change login behavior. $this->config->set('plugins.login', $this->config->get('plugins.admin.login')); + $this->config->set('plugins.login.session.path', $this->uri->rootUrl(false) . $this->base); $this->active = true; } @@ -278,9 +279,6 @@ class AdminPlugin extends Plugin 'onTask.GPM' => ['onTaskGPM', 0] ]); - // Change login behavior. - $this->config->set('plugins.login', $this->config->get('plugins.admin.login')); - // Decide admin template and route. $path = trim(substr($this->uri->route(), strlen($this->base)), '/'); $this->template = 'dashboard';