Do our best to provide sane cookie defaults.
This commit is contained in:
parent
92be2e1081
commit
1ca8584390
10
index.php
10
index.php
@ -77,11 +77,11 @@ else {
|
|||||||
|
|
||||||
$arr = session_get_cookie_params();
|
$arr = session_get_cookie_params();
|
||||||
session_set_cookie_params(
|
session_set_cookie_params(
|
||||||
$arr['lifetime'],
|
((isset($arr['lifetime'])) ? $arr['lifetime'] : 60*5),
|
||||||
$arr['path'],
|
((isset($arr['path'])) ? $arr['path'] : '/'),
|
||||||
$arr['domain'],
|
((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()),
|
||||||
(($_SERVER['HTTPS']) ? true : false),
|
((isset($_SERVER['HTTPS'])) ? true : false),
|
||||||
$arr['httponly']);
|
((isset($arr['httponly'])) ? $arr['httponly'] : true));
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1 +1 @@
|
|||||||
2014-05-06.667
|
2014-05-07.668
|
||||||
|
Reference in New Issue
Block a user