Web.py session data disappears during production
First of all, the means of production works with web.config.debug = False
. So the suggested hook from the documentation doesn't help (also tested). This way my Login Script keeps three variables in the session. When I access them within a set function, they return the expected value.
print session.get("privilege") # Return 0
print logged() # Return 0
session.login = 1
session.privilege = ident['privilege']
session.userid = ident['id']
render = create_render(session.get('privilege'))
print session.get("privilege") # Returns 1 <- as exprected
print logged() # Returns True as expected
raise web.seeother('/next')
In the next class, all values ββare set back to 0. Any ideas? I'm using git and even going back to a previous (working) version didn't help. This behavior suddenly appeared. Only a change I remember doing on the system (OSX Mavericks) sets cliclick.
+3
source to share