in a form, I submit data to a python webapp handler (all Google App Engine based) using a HTTP POST request. In this script, I first check if the user is logged in and if not, I use users.create_login_url(…) to redirect the user first to the login page.
How can I ensure that after login the user is not just forwarded to my python script again, but that also the POST variables are preserved? The only way I found was turning all POST variables into URL parameters and adding it to the URL.
Is that possible at all?
Normally, I’d store it in session variables. I’ve used gae-sessions before and found it easy. It persists to the datastore and memcaches behind the scenes for speed. Looks like this:
Or you could be all HTML5y and use
localStorage.