@@ -9,7 +9,7 @@ Auto logout a user after specific time in Django.
9
9
Works with Python🐍 ≥ 3.7, Django🌐 ≥ 3.0.
10
10
11
11
✔️ Installation
12
- ----------------
12
+ ---------------------
13
13
14
14
.. code :: bash
15
15
@@ -33,7 +33,7 @@ Append to `settings` middlewares:
33
33
- `django.contrib.messages.middleware.MessageMiddleware `
34
34
35
35
💤 Logout in case of idle
36
- ------------------------
36
+ -----------------------------
37
37
38
38
Logout a user if there are no requests for a long time.
39
39
@@ -45,7 +45,7 @@ Add to `settings`:
45
45
46
46
47
47
⌛ Limit session time
48
- --------------------
48
+ ------------------------
49
49
50
50
Logout a user after 3600 seconds (hour) from the last login.
51
51
@@ -56,7 +56,7 @@ Add to `settings`:
56
56
AUTO_LOGOUT = {' SESSION_TIME' : 3600 }
57
57
58
58
✉️ Show messages when logging out automatically
59
- ------------------------------------------------
59
+ -----------------------------------------------------
60
60
61
61
Set the message that will be displayed after the user automatically logs out of the system:
62
62
@@ -84,7 +84,7 @@ It uses `django.contrib.messages`. Don't forget to display messages in templates
84
84
See `TEMPLATES ` → `OPTIONS ` → `context_processors ` in your `settings.py ` file.
85
85
86
86
🌈 Combine configurations
87
- ------------------------
87
+ ----------------------------
88
88
89
89
You can combine previous configurations. For example, you may want to logout a user
90
90
in case of downtime (5 minutes or more) and not allow working within one session
0 commit comments