try to fix random logouts

This commit is contained in:
friendica
2014-05-12 17:04:03 -07:00
parent 6f78d4785c
commit b3cc05c41d
3 changed files with 7 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ if(! $a->install) {
if(intval($a->config['system']['ssl_cookie_protection'])) {
$arr = session_get_cookie_params();
session_set_cookie_params(
((isset($arr['lifetime'])) ? $arr['lifetime'] : 60*5),
((isset($arr['lifetime'])) ? $arr['lifetime'] : 0),
((isset($arr['path'])) ? $arr['path'] : '/'),
((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()),
((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? true : false),