master
Aevann1 2021-09-10 07:15:59 +02:00
parent 1bffcda00f
commit d14b601390
1 changed files with 2 additions and 3 deletions

View File

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