Home > Backend Development > PHP Tutorial > php cookie怎么跨域

php cookie怎么跨域

WBOY
Release: 2016-06-13 11:13:10
Original
1242 people have browsed it

php cookie如何跨域?


求高手指导一下。如何操作。


另外详细讲解一下php setcookie中的  域   的参数 要求,及问题


比如:setcookie("name","value",time()+3600,"path","domain","http");


期中的domian的要求。比如: 我有两个网站 demo.xx.com  admin.xx.com   这种,如何设置domain.


.xx.com这种方式,还是,怎么样,求高手指导。


php COOKI?跨域
------解决方案--------------------
cookie跨域是需要用到jsonp的。
setcookie("name","value",time()+3600,"/","xx.com")这种不能跨别人的域名上面去的。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template