Done by a cookie to store loginName