Made some changes to unset sessions