Explicitly convert session to hash
Merge pull request #192 from dmarkow/master

Explicitly convert session to hash