mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:15:19 +00:00
Do our best to provide sane cookie defaults.
This commit is contained in:
parent
92be2e1081
commit
1ca8584390
2 changed files with 6 additions and 6 deletions
10
index.php
10
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();
|
||||
|
||||
/**
|
||||
|
|
|
@ -1 +1 @@
|
|||
2014-05-06.667
|
||||
2014-05-07.668
|
||||
|
|
Loading…
Reference in a new issue