google app engine - authentication redirect with offline webapp (gae python, html5) -


to gae+html5 gurus out there :)

when user logs on gae hosted application, credentials stored locally in cookie (correct?).

after cookie expires (e.g. if users hits logout on browser tab), no login_required protected methods work.

regular webapp require re-authentication next time user navigates login_protected url automatically redirecting login screen.

what right way cached webapp handling this?

my test simple login_protected page accessed chrome , ios browser. it's cached , accessible offline expected. then, (while online) , after authentication expires, server log shows 302 response followed 200 response of authentication dialog page, of course no authentication happens.

thanks!

if using google authentication provide access page . means if logged in 1 of other google services. cookie still exists in browser. login_required assume logged on based on cookie. seeing redirection google's page that's 302. if want can manage sessions on own , check authentication based on data in data store.there lot of solutions availble both python , java .


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -