Skip to content

Commit

Permalink
[xs] make lang cookie a session one
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 6, 2012
1 parent 5bb1b18 commit 8c19d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def handle_request(request, tmpl_context):
# remember this because repoze.who does it's own redirect.
try:
if request.cookies.get('ckan_lang') != lang:
response.set_cookie('ckan_lang', lang, max_age=3600)
response.set_cookie('ckan_lang', lang)
except AttributeError:
# when testing FakeRequest does not have cookies
pass
Expand Down

0 comments on commit 8c19d95

Please sign in to comment.