2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 07:37:19 +00:00

shared use machine short-cookie timeout implemented for survex file editing only

This commit is contained in:
2025-06-25 23:30:20 +03:00
parent 19844cd94a
commit a7966e714d
3 changed files with 25 additions and 8 deletions

View File

@@ -441,8 +441,8 @@ def svx(request, survex_file):
else:
edit_response = render(request, "svxfile.html", vmap)
edit_response.set_cookie('editor_id', editor, max_age=get_cookie_max_age()) # cookie expires after get_cookie_max_age() seconds
print(f"Cookie reset: {editor} for another {get_cookie_max_age()/3600} hour(s)")
edit_response.set_cookie('editor_id', editor, max_age=get_cookie_max_age(request)) # cookie expires after get_cookie_max_age() seconds
print(f"Cookie reset: {editor} for another {get_cookie_max_age(request)/3600} hour(s)")
return edit_response