cookie storage for user and logout