I wanted to create a logout URL in an Google AppEngine app, but unfortunately the documented method (users.create_logout_url()) logs you out of all Google services, not just the app.
Fortunately, I found this post which describes how to set cookies to log you out of the app. Here is what I did in my app:
https://gist.github.com/anonymous/4733505
Now, I can add a link to /logout, and the user will be logged out of the app.
Many thanks to the pts.blog!
Thursday, February 7, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment