app.brand
nav.index
nav.about
user.sign.in
ThinkPHP解决跨域cookie和session共享问题
cookie: 在ThinkPHP应用配置文件中添加 ```php 'COOKIE_DOMAIN' => 'xxx.com' ``` session: 在根目录index.php中添加 ```php define ( 'DOMAIN', 'yourdomain.com' ); ini_set ( 'session.cookie_path', '/' ); ini_set ( 'session.cookie_domain', DOMAIN ); ``` 客户端cookie使用jquery操作,需要添加: ```javascript $.cookie(COOKIE_KEY, COOKIE_VALUE, { expires : COOKIE_EXPIRES_DAY, path : '/', domain : COOKIE_DOMAIN }); ``` 同样的,在删除cookie的时候也要对应添加: ```javascript $.removeCookie(COOKIE_KEY, { path : '/', domain : COOKIE_DOMAIN }); ```
data.update.last
sys.time.ago
punc.commaarticle.create.bypunc.commaarticle.file.inpunc.colon
ThinkPHP
©app.copyright.year
app.author
·
app.ICP
sys.donate
alipay._self
wechat._self