aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
/**