From d8c38c77246451f80a04070dd9fee31773a85c67 Mon Sep 17 00:00:00 2001 From: Mohamed Nizar Date: Wed, 2 Dec 2020 12:06:54 +0530 Subject: [PATCH] enable secure flag on session #303 --- config/app.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index c04a0e1b..fd6b253e 100755 --- a/config/app.php +++ b/config/app.php @@ -336,7 +336,13 @@ * To use database sessions, load the SQL file located at config/Schema/sessions.sql */ 'Session' => [ - 'defaults' => 'php', + 'defaults' => 'cake', + 'timeout' => 30, + 'cookieTimeout' => 30, + 'ini' => array( + 'session.cookie_secure' => true, + 'session.cookie_httponly' => true + ) // 'defaults' => 'cache', ], 'debug' => true