From bbfbdec483583514ed4afe3ec34047d9810ac29c Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 14 Jun 2018 19:23:35 +0300 Subject: [PATCH] Added setting to disable sessions from the site [#2013] --- CHANGELOG.md | 1 + system/blueprints/config/system.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fea27f8ae..ba8e0a36d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * Added `Grav\Framework\Session` class to replace `RocketTheme\Toolbox\Session\Session` * Added `Grav\Common\Media` interfaces and trait; use those in `Page` and `Media` classes * Added `Grav\Common\Page` interface to allow custom page types in the future + * Added setting to disable sessions from the site [#2013](https://github.com/getgrav/grav/issues/2013) 1. [](#improved) * Improved session handling, allow all session configuration options in `system.session.options` 1. [](#bugfix) diff --git a/system/blueprints/config/system.yaml b/system/blueprints/config/system.yaml index 53f8ba179..704aa624e 100644 --- a/system/blueprints/config/system.yaml +++ b/system/blueprints/config/system.yaml @@ -996,6 +996,18 @@ form: validate: type: bool + session.initialize: + type: toggle + label: PLUGIN_ADMIN.SESSION_INITIALIZE + help: PLUGIN_ADMIN.SESSION_INITIALIZE_HELP + highlight: 1 + options: + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO + default: true + validate: + type: bool + session.timeout: type: text size: small