On Wed, Nov 27, 2013 at 08:31:53AM -0800, Toshio Kuratomi wrote:
On Wed, Nov 27, 2013 at 04:42:49PM +0100, Pierre-Yves Chibon wrote:
> At the moment in fedocal, pkgdb2 and probably other apps using flask_fas_openid,
> the timeout for the session is the default one which is set to 31 days.
> This can of course be changed and I was wondering what we think would be best as
> a default timeout.
> PS: Change the timeout in Flask:
No more than 2 days. Probably no more than 1 day.
No less than 20 minutes (FAS has an idle timeout of 20 minutes).
Should we go for 1 hour then?
Is this an idle timeout or an absolute timeout?
That I do not know.
the lifetime of a permanent session as datetime.timedelta object. Starting with
Flask 0.8 this can also be an integer representing seconds.
The good news is that it looks like we can just set it up in the configuration
file using the key: PERMANENT_SESSION_LIFETIME w/o having to change anything in
the application itself.