From d293534c3c25967249d1e5cbfa56b0c6e8c9ea6a Mon Sep 17 00:00:00 2001 From: Felix Eckhofer Date: Fri, 8 Jun 2018 21:43:02 +0000 Subject: [PATCH] Initialize session on setup (#1451) This makes the plugin compatible with `system.session.initialize = false` which makes it possible to have no session cookie (for frontend users) while the admin login still works. --- admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin.php b/admin.php index a36cbee2..6be371c3 100644 --- a/admin.php +++ b/admin.php @@ -144,6 +144,7 @@ class AdminPlugin extends Plugin // Only activate admin if we're inside the admin path. if ($this->isAdminPath()) { + $this->grav['session']->init(); $this->active = true; // Set cache based on admin_cache option