Web session lengths should be able to last longer
Posted: Wed Dec 19, 2012 8:06 am
The maximum web session length is currently 24 hours.
The available session lengths are:
- 15 minutes
- 30 minutes
- 1 hour
- 2 hours
- 4 hours
- 12 hours
- 24 hours
We should be able to stay logged in for a longer time if we choose so.
I suggest replacing the less probably used session length choices by longer lengths :
- 15 minutes
- 1 hour
- 1 day
- 1 week
- 1 month
- 1 year
Additionally, it should be possible to remove the browser user agent from the cookie identification, as it invalidates the session each time the browser is updated (which is pretty frequent with Chrome and Firefox).
The available session lengths are:
- 15 minutes
- 30 minutes
- 1 hour
- 2 hours
- 4 hours
- 12 hours
- 24 hours
We should be able to stay logged in for a longer time if we choose so.
I suggest replacing the less probably used session length choices by longer lengths :
- 15 minutes
- 1 hour
- 1 day
- 1 week
- 1 month
- 1 year
Code: Select all
diff --git a/package/gargoyle/files/www/access.sh b/package/gargoyle/files/www/access.sh
index 15eb2e4..598863e 100755
--- a/package/gargoyle/files/www/access.sh
+++ b/package/gargoyle/files/www/access.sh
@@ -58,12 +58,11 @@
<label class='leftcolumn' id='session_length_label' for='session_length'>Web Login Session Length:</label>
<select class='rightcolumn' id='session_length' >
<option value='15'>15 minutes</option>
- <option value='30'>30 minutes</option>
<option value='60'>1 hour</option>
- <option value='120'>2 hours</option>
- <option value='240'>4 hours</option>
- <option value='720'>12 hours</option>
- <option value='1440'>24 hours</option>
+ <option value='1440'>1 day</option>
+ <option value='10080'>1 week</option>
+ <option value='43200'>1 month</option>
+ <option value='525600'>1 year</option>
</select>
</div>