bug fix: can't use localhost.

if use cookie on localhost, domain name is '', NOT 'localhost' !!