Hi!
There is slightly modified script from cookbook:
web.config.session_parameters['timeout'] = 30
web.config.session_parameters['ignore_expiry'] = False
session = web.session.Session(app, web.session.DiskStore('sessions'),
initializer={'count': 0})
class count:
def GET(self):
session.count += 1
return str(session.count)
class reset:
def GET(self):
session.kill()
return ""
It doesn't work. If I point my browser to localhost:8080/count, I have
message "Session expired".
How make sessions expiration work properly?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---