diff options
author | friendica <info@friendica.com> | 2014-05-05 18:49:58 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-05 18:49:58 -0700 |
commit | 1fa8bc12e54147cd7ed0dc816cdc2d32892326ed (patch) | |
tree | 1bb3430857c1670f7a628334480315e63bfa677c | |
parent | 294903046132d5cec6ae4a9c4a62f40b32b6d056 (diff) | |
download | volse-hubzilla-1fa8bc12e54147cd7ed0dc816cdc2d32892326ed.tar.gz volse-hubzilla-1fa8bc12e54147cd7ed0dc816cdc2d32892326ed.tar.bz2 volse-hubzilla-1fa8bc12e54147cd7ed0dc816cdc2d32892326ed.zip |
try again
-rwxr-xr-x | index.php | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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(); /** |