google app engine - GAE python webapp2 authentication setting max token age -



google app engine - GAE python webapp2 authentication setting max token age -

i'm using webapp2 authentication based on next article: http://blog.abahgat.com/2013/01/07/user-authentication-with-webapp2-on-google-app-engine/

currently 1 time user has logged in, remain logged in 3 weeks until logs out. i'd happens when user has checked "remember me" checkbox. if box not checked, should expire session finished.

currently when user logs in, next code used login , set token:

self.auth.get_user_by_password(username, password, remember=true, save_session=true)

what recommended way this? found documentation in next link, not sure how implement this. https://webapp-improved.appspot.com/api/webapp2_extras/auth.html

i didn't figure out how set actual max_age, setting remember=false, user logged_out session ends. therewith login is:

self.auth.get_user_by_password(username, password, remember=false, save_session=true)

python google-app-engine session authentication webapp2

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -