Updated middleware.py for sessions to support hashed session id's in cookies