From 5705886aac335c144916357c14c2701a8ebe6ab2 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 20 Oct 2015 07:37:13 +0000 Subject: [PATCH] allow client-side to detect first load aka just logged in --- phpgwapi/inc/class.egw_framework.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 16d9cf33ad..e25ad67bbf 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -285,6 +285,10 @@ abstract class egw_framework header("Content-Security-Policy: $csp"); header("X-Webkit-CSP: $csp"); // Chrome: <= 24, Safari incl. iOS header("X-Content-Security-Policy: $csp"); // FF <= 22 + + // allow client-side to detect first load aka just logged in + $reload_count =& egw_cache::getSession(__CLASS__, 'framework-reload'); + self::$extra['framework-reload'] = (int)(bool)$reload_count++; } /**