Session variables are now correctly managed.  Fixes #37