aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2024-05-01 15:47:13 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2024-05-01 15:47:13 -0400
commit9068d576f38399b820100b7f89518800fc3e8f94 (patch)
tree8a7260b7e34177281813796ee2ce1224f83d0e0a
parent6078643f01bfe17aab231133bf73ded0a7b9cddb (diff)
downloadlevitating-9068d576f38399b820100b7f89518800fc3e8f94.tar.gz
levitating-9068d576f38399b820100b7f89518800fc3e8f94.zip
Fixed session timeout to be one day for real this time
-rw-r--r--captain/db.f902
1 files changed, 1 insertions, 1 deletions
diff --git a/captain/db.f90 b/captain/db.f90
index 7ee0515..389e19e 100644
--- a/captain/db.f90
+++ b/captain/db.f90
@@ -1716,7 +1716,7 @@ contains
session_expired_db = .true.
! Statement should return the count of sessions that _has not_ expired!
- if(stmt%prepare(db, "SELECT COUNT(*) FROM sessions WHERE accessed > datetime('now', '-30 minutes') AND session=?") &
+ if(stmt%prepare(db, "SELECT COUNT(*) FROM sessions WHERE accessed > datetime('now', '-1 day') AND session=?") &
== SQLITE_OK) &
then