beta testing for Client login system

I think I've corrected all the issues that were breaking the login
redirection.

It appears that cookie id/name cannot be a extremely long string.