From 5fa0c1e040795685c894620bf53e7571f0c73f74 Mon Sep 17 00:00:00 2001 From: HAYATU UMAR FARUQ Date: Wed, 20 Apr 2022 20:14:02 +0800 Subject: [PATCH] Set session duration to 2 hours (#33) This pull request is for extending the login session duration to 2 hours as reported in [Bug256](http://118.25.96.118/bugzilla/show_bug.cgi?id=256). Co-authored-by: faruq Reviewed-on: http://121.4.94.30:3000/mrlan/LRR/pulls/33 Co-authored-by: HAYATU UMAR FARUQ Co-committed-by: HAYATU UMAR FARUQ --- doc/UserDoc.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/UserDoc.md b/doc/UserDoc.md index 4ab07c1..8a78d83 100644 --- a/doc/UserDoc.md +++ b/doc/UserDoc.md @@ -17,5 +17,10 @@ After that, issue the following commands in the mysql prompt. The first one uses a database called lrr in MySQL. The second one deletes a record from `users_table` where the student number is 201131129138. +Increasing session duration +------------------- -*Last modified on 1 June 2020 by Hui* +By default, the session duration in PHP is set to 1,440 seconds (24 minutes). However, this is not convenient in most software systems. Therefore, we may need to increase the duration to allow users to have more session time. To increase the session duration, we need to edit the variable *session.gc_maxlifetime* in **php.ini**. We can increase its default value to whatever we want (e.g., 7200). +On Ubuntu, the file is located at */etc/php/7.2/apache2/php.ini*. On XAMPP, the file is located at */xampp/php/php.ini*. + +*Last modified on 20 April 2022 by Umar*