Open GoogleCodeExporter opened 8 years ago
'new' can be used to get a hint that possibly the client's cookie is not OK
Something like this will induce resending:
def dispatch(self):
self.session_store = sessions.get_store(request=self.request)
if self.session_store.get_session().new:
#modified session will be re-sent
self.session_store.get_session().update({})
try:
webapp2.RequestHandler.dispatch(self)
finally:
self.session_store.save_sessions(self.response)
Original comment by dontbit...@gmail.com
on 4 Dec 2013 at 10:40
Original issue reported on code.google.com by
dontbit...@gmail.com
on 3 Dec 2013 at 6:04