From 289de71581d033dd64c146705b9c8f6e21300bad Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 3 Jun 2014 12:10:20 +0000 Subject: [PATCH] backport of r47147 from 1.8, thought 11.1 or trunk seems not to initialise session --- setup/inc/class.setup.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index 0881f14ff5..4ebaa8fb8f 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -246,7 +246,11 @@ class setup if (isset($_COOKIE[self::SESSIONID])) session_id($_COOKIE[self::SESSIONID]); - return @session_start(); // suppress notice if session already started or warning in CLI + $ok = @session_start(); // suppress notice if session already started or warning in CLI + // need to decrypt session, in case session encryption is switched on in header.inc.php + egw_session::decrypt(); + //error_log(__METHOD__."() returning ".array2string($ok).' _SESSION='.array2string($_SESSION)); + return $ok; } /**