aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-06 02:33:11 -0700
committerredmatrix <git@macgirvin.com>2016-04-06 02:33:11 -0700
commitfb9c12df1534f8f34400d783904c3003b8e19c46 (patch)
tree2fb5d65af553a6820f2476413c1fbbc1f6228ed7
parent5a2a8717e3da4e84802cc72eebb600db2f774f0a (diff)
downloadvolse-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.php1
-rwxr-xr-xindex.php5
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);
}
diff --git a/index.php b/index.php
index a9a55dca7..a6ed3dbc6 100755
--- a/index.php
+++ b/index.php
@@ -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();
/**