support safari,chrome browser with template manager and clearup cookie when user logout.