[opw-web] Increase session timeout time to 1 day.



commit 7888008962abb472799f2d16d7881c2b9711d0fa
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 10 20:29:14 2014 -0400

    Increase session timeout time to 1 day.
    
    Instead of timing out sessions after 30 minutes, time them out after
    a day of inactivity - even this is probably too severe - we likely
    should switch to persistent cookies and let users stay logged in for
    a month.

 classes/class_user.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/classes/class_user.php b/classes/class_user.php
index facf2f2..f238f62 100644
--- a/classes/class_user.php
+++ b/classes/class_user.php
@@ -24,7 +24,7 @@ class user
         $this->sid = null;
         $this->is_admin = false;
         $this->is_logged_in = false;
-        $this->max_age = time() - 1800;
+        $this->max_age = time() - 24 * 60 * 60;
     }
 
     function hybridauth() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]