I am having a problem running my web2py app on GAE. The login form
seems to not be setting the session for the client. It is working when
i run it locally with the web2py server, and the appengine local dev
server, but not when I run it on GAE.
When running it on GAE in my response var i get:
session_id : None:770fb2da-a8fa-48dd-baba-07ee7df0e78f
which is incorrect and not working, but when running locally with
appengine dev server i am getting:
session_id : 94:a46d6f5b-cded-4b2c-9b07-b45fc5d9a117
which is correct and working.
Does anyone know how to solve this, or what might be the steps to fix
this?
Thanks,
Stephen
db=DLA('gae')
session.connect(request,response,db)
somewhere.
Can you check on GAE console if any session record has been created?
Massimo
if request.env.web2py_runtime_gae:
db = DAL('gae')
session.connect(request, response, db=db)
else:
db = DAL('sqlite://storage.sqlite')
because it is working locally with the dev appengine server.
I did notice that it is not creating a session entry on the GAE
web2py_session_myapp table so i'll investigate that route. Why would
it not be able to create a session?
Thanks,
Stephen