summaryrefslogtreecommitdiff
path: root/includes/helper
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-05-14 17:20:46 +0200
committerPhilip Häusler <msquare@notrademark.de>2015-05-14 17:20:46 +0200
commit0a59089e2b3e16923b80cf071c769d628053e59e (patch)
tree0b7736e41ddceb3381a4c96b61f7897a5c5607e5 /includes/helper
parent284ed12f594ee4001eafaff57c626df37a077f0a (diff)
add room model tests
Diffstat (limited to 'includes/helper')
-rw-r--r--includes/helper/session_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/helper/session_helper.php b/includes/helper/session_helper.php
index 4063ff69..7a3b551e 100644
--- a/includes/helper/session_helper.php
+++ b/includes/helper/session_helper.php
@@ -22,7 +22,7 @@ function session_lifetime($lifetime, $application_name) {
ini_set('session.gc_divisor', 100);
// Cookie settings (lifetime)
- ini_set('session.cookie_secure', ! (preg_match("/^localhost/", $_SERVER["HTTP_HOST"]) || isset($_GET['debug'])));
+ ini_set('session.cookie_secure', ! (isset($_SERVER['HTTP_HOST']) && preg_match("/^localhost/", $_SERVER["HTTP_HOST"]) || isset($_GET['debug'])));
ini_set('session.use_only_cookies', true);
ini_set('session.cookie_lifetime', $lifetime * 60);
}