Fix and simplify session lookup

* Use SESSION_COOKIE_NAME for sessions
Merge pull request #125 from sharoonthomas/develop

Fix and simplify session lookup