Do our best to provide sane cookie defaults.

This commit is contained in:
friendica 2014-05-07 16:31:54 -07:00
parent 92be2e1081
commit 1ca8584390
2 changed files with 6 additions and 6 deletions

View file

@ -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();
/**

View file

@ -1 +1 @@
2014-05-06.667
2014-05-07.668