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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user