mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 02:40:11 +01:00
[fix] setting category cookie expiration to 4 weeks
This commit is contained in:
parent
53878fde2d
commit
863d136ddd
@ -152,7 +152,8 @@ def preferences():
|
||||
selected_categories.append(category)
|
||||
if selected_categories:
|
||||
resp = make_response(redirect('/'))
|
||||
resp.set_cookie('categories', ','.join(selected_categories))
|
||||
# cookie max age: 4 weeks
|
||||
resp.set_cookie('categories', ','.join(selected_categories), max_age=60*60*24*7*4)
|
||||
return resp
|
||||
return render('preferences.html')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user