Session loads variables from existing cookie after reset()

I encountered an issue with the session loading variables from an existing cookie after doing a reset().
Applied a simple fix and added a test case for this.

Thanks,
-Roman