Fixed #78 -- cookie cleanup before login.
Merge pull request #102 from opdemand/78-login-failed

Fixed #78 -- cookie cleanup before login.