Sessions with Google Cloud Endpoints [Python] -


i trying session service working cloud endpoints when user refresh page, not lose everything.

i thought had figure out gae-session : https://github.com/dound/gae-sessions works locally.

but reason when upload code, session not work. not sure why happening (ssl maybe?)

i session

class myapi(remote.service):    def __init__(self):     # retrieve session if exists     self.session = get_current_session()    @endpoints.method(message, message, path='app_init', http_method='post', name='app.init')   def appinit(self, request):     if not self.session.is_active():       logging.info('session active')     else:       logging.info('no active session) 

any idea on doing wrong or maybe better solution?

thanks


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -