I changed user logout so that cookies keys are deleted instead of being set to nil.