sessionIDs were not being generated properly
and sessions were being recreated incorrectly
Merge pull request #487 from n8fr8/bug_sessionid_recreated

sessionIDs were not being generated properly