Removed unnecessary code

This code was believed to be necessary for handling sessions, but turns
out to be unnecessary.