From 1ca8584390fcfcd75f0a66fb458310d059a29f7d Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 7 May 2014 16:31:54 -0700 Subject: Do our best to provide sane cookie defaults. --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 93dbd1a54..6019cecd3 100755 --- a/index.php +++ b/index.php @@ -77,11 +77,11 @@ else { $arr = session_get_cookie_params(); session_set_cookie_params( - $arr['lifetime'], - $arr['path'], - $arr['domain'], - (($_SERVER['HTTPS']) ? true : false), - $arr['httponly']); + ((isset($arr['lifetime'])) ? $arr['lifetime'] : 60*5), + ((isset($arr['path'])) ? $arr['path'] : '/'), + ((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()), + ((isset($_SERVER['HTTPS'])) ? true : false), + ((isset($arr['httponly'])) ? $arr['httponly'] : true)); session_start(); /** -- cgit v1.2.3