on master help sign in
[fix] setting category cookie expiration to 4 weeks
commit863d136dddc2b5947ac9ab615a91e085b2a307bb authorasciimoo <asciimoo@gmail.com> dateSun 5 Jan 2014, 01:11 (13 years ago) parent53878fd
1 file changed+2−1
searx/webapp.py+2−1
searx/webapp.py+2−1
@@ -152,7 +152,8 @@ def preferences():
152152 selected_categories.append(category)
153153 if selected_categories:
154154 resp = make_response(redirect('/'))
155− resp.set_cookie('categories', ','.join(selected_categories))
155+ # cookie max age: 4 weeks
156+ resp.set_cookie('categories', ','.join(selected_categories), max_age=60*60*24*7*4)
156157 return resp
157158 return render('preferences.html')
158159