turn session into hash before reset due to both sessions being reset (old and new)
Merge pull request #398 from RyanonRails/fix_session_reset

turn session into hash before reset due to both sessions being reset (old and new)