Fixes #2

Hello, I've made a simple patch (without making tests, sorry) to fix #2. Also I fixed bug with the session prefix default value (which was unset because null !== undefined). Hope you incorporate this =)