I have a strange issue that keeps popping up on my site where a random user will suddenly get 500 errors everywhere they go and this is because on my master template i display the logged in user and some how request.identity['user'] == None.
I can't reproduce the issue i have tried to setting request.identity['user'] == None and i it just instantly shows me as logged on and i get no errors.
It's very frustrating and there are some work arounds i could put in place but i would rather try and understand why its happening and the code a solution rather than a bandaid.
Thanks!