C
C
cehka2019-08-09 00:26:57
Django
cehka, 2019-08-09 00:26:57

How to log out a person after some time in Django?

Sessions are stored in the cache, they are not in the database. How can I, for example, authorize a person for only 60 minutes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-08-09
@cehka

SESSION_COOKIE_AGE = 60 * 60

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question