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
Post a Comment