joerussbowman / gaeutilities

gaeutilities - A collection of utilities to help with application development on Google Appengine
http://gaeutilities.appspot.com
BSD 3-Clause "New" or "Revised" License
78 stars 4 forks source link

Don't set the "*_data" cookie when there is no session data #17

Closed e2jk closed 14 years ago

e2jk commented 14 years ago

I use the sessions only as a way to authenticate users, and don't associate data with the sessions. So I have no use in the second cookie that gets created.

Additionally, "data" cookies are created for each "directory level". For example, if I have a page located at /add/issue, I will get a "data" cookie for root "/" and "/add/issue". This is because, unlike the session cookie, the data cookie is not set to respect the "cookie_path".

I've pushed a first commit on my fork to address those 2 issues (I already use that live on my production instance), sending a pull request for you to examine it.

e2jk commented 14 years ago

Thanks for pulling in my changes. Closing this issue.