Per comments in the commit - setting the session cookie over and over can be troubles...