Skip to content

Commit

Permalink
Set the cookie path.
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Sep 18, 2013
1 parent 1a422a8 commit 7dd1827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zope/formlib/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ def setUpToken(self):
self.request.response.setCookie(
'__csrftoken__',
self.csrftoken,
path='/',
expires=None, # equivalent to "remove on browser quit"
httpOnly=True, # no javascript access please.
)
Expand Down

0 comments on commit 7dd1827

Please sign in to comment.