diff options
author | redmatrix <git@macgirvin.com> | 2016-04-06 02:33:11 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-06 02:33:11 -0700 |
commit | fb9c12df1534f8f34400d783904c3003b8e19c46 (patch) | |
tree | 2fb5d65af553a6820f2476413c1fbbc1f6228ed7 | |
parent | 5a2a8717e3da4e84802cc72eebb600db2f774f0a (diff) | |
download | volse-hubzilla-fb9c12df1534f8f34400d783904c3003b8e19c46.tar.gz volse-hubzilla-fb9c12df1534f8f34400d783904c3003b8e19c46.tar.bz2 volse-hubzilla-fb9c12df1534f8f34400d783904c3003b8e19c46.zip |
rework the "remember me" fix to be a bit less hackish
-rw-r--r-- | include/session.php | 1 | ||||
-rwxr-xr-x | index.php | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/include/session.php b/include/session.php index 82f82a9b9..4a7c8052e 100644 --- a/include/session.php +++ b/include/session.php @@ -67,6 +67,7 @@ function new_cookie($time) { } setcookie('jsAvailable', $_COOKIE['jsAvailable'], $expires); } + setcookie(session_name(),session_id(),$expires); } @@ -84,11 +84,6 @@ if(! App::$install) { * */ -/* session_set_cookie_params() needs to happen before session_start() */ - -if($_POST['remember_me']) - session_set_cookie_params(31556926); - session_start(); /** |