aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index a6ed3dbc6..a9a55dca7 100755
--- a/index.php
+++ b/index.php
@@ -84,6 +84,11 @@ if(! App::$install) {
*
*/
+/* session_set_cookie_params() needs to happen before session_start() */
+
+if($_POST['remember_me'])
+ session_set_cookie_params(31556926);
+
session_start();
/**