1、Domain:必须是相同的。
例如有多个域名:
www.test.com
sso.test.com
search.test.com
需要设置domain为:.test.com
2、设置path:/
3、如果是localhost不要设置domain。直接设置path就可以了。