Fix a bug where the session would be reset when other cookies are present