session_id is not getting set on GAE

28 views
Skip to first unread message

stephen

unread,
Mar 9, 2010, 3:10:22 PM3/9/10
to web2py-users
Hello,

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

mdipierro

unread,
Mar 9, 2010, 4:31:00 PM3/9/10
to web2py-users
I assume you have

db=DLA('gae')
session.connect(request,response,db)

somewhere.

Can you check on GAE console if any session record has been created?

Massimo

stephen

unread,
Mar 9, 2010, 8:22:43 PM3/9/10
to web2py-users
Yes I am including the connection string

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

mdipierro

unread,
Mar 10, 2010, 10:56:46 PM3/10/10
to web2py-users
I do not know what the problem could be. I cannot reproduce it. Can
you send a minimalist application to reproduce the problem? I assume
you are using the latest web2py.
Reply all
Reply to author
Forward
0 new messages