master
Aevann1 2021-09-10 07:14:55 +02:00
parent 698282e968
commit 1bffcda00f
1 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,8 @@ def post_id(pid, anything=None, v=None):
session[str(post.id)] = int(time.time())
for key, val in session.items():
test = session.items()
for key, val in test:
if type(val) is int and key not in ['login_nonce','user_id']:
if time.time() - val > 86400: del session[key]