Add error log.
Add page display control.
Fix function name.
Logout front end logic done.
Fix cookie domain issue.