python 3.x - How to set sessions timeout in django? -


i want implement login , logout session in website through after set of time session should expire automatically. , if user logged in user not go back.

in settings.py set https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-session_cookie_age.

for example if want time out 1 hour

session_cookie_age = 3600 # on hour in seconds 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -