Guys,
I cannot get sessions to work in my latest project and am lost as where to
search for the error.
I am using the standard workaround for "session with reloader":
if web.config.get('_session') is None:
session = web.session.Session(app, web.session.DiskStore('sessions'))
web.config._session = session
else:
session = web.config._session
Later I am doing nothing fancy, just trying to add values to the session, like
session.agent = 'lolwut'
Checking with Chrome's and Firefox's developer tools, I see that no cookie is
sent with the page headers webpy returns.
This happens with debugging enabled or disabled, with DBStore and DiskStore.
DiskStore creates the directory "sessions" but doesn't put any files inside. The
database table also doesn't get populated.
There is no error message, session are failing silently (quite un-pythonic).
Any hints where to look for the error?
Bests,
Dragan
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.