mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:15:51 +00:00
try again
This commit is contained in:
parent
2949030461
commit
1fa8bc12e5
1 changed files with 9 additions and 2 deletions
11
index.php
11
index.php
|
@ -73,8 +73,15 @@ else {
|
|||
*
|
||||
*/
|
||||
|
||||
// FIXME - doesn't work
|
||||
// session_set_cookie_params(300,'/',$a->get_hostname(),(($_SERVER['HTTPS']) ? true : false),true);
|
||||
// Force the cookie to be secure (https only) if this site is SSL enabled. Must be done before session_start().
|
||||
|
||||
$arr = session_get_cookie_params();
|
||||
session_set_cookie_params(
|
||||
$arr['lifetime'],
|
||||
$arr['path'],
|
||||
$arr['domain'],
|
||||
(($_SERVER['HTTPS']) ? true : false),
|
||||
$arr['httponly']);
|
||||
session_start();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue