Updated for session nulling

Regens session id on login
Destroys session on logout
Merge pull request #300 from gabriel403/master

hotfix session fixation and session destruction