only store guid in the session
casting to bool
Merge pull request #5672 from cash/user_session

only store guid in the session