sessionIDs were not being generated properly

and sessions were being recreated incorrectly
@devrandom this is what I fixed. I just ensured the ! scope was correct.