revert changes to session.go