Home >Backend Development >PHP Tutorial >tp框架中session取不到值 然后session.cookie_domain 这个怎么用的

tp框架中session取不到值 然后session.cookie_domain 这个怎么用的

WBOY
WBOYOriginal
2016-06-06 20:06:371420browse

<code>session(array('name'=>'session_id','domain'=>)); 数组中domain后面应该填什么</code>

回复内容:

<code>session(array('name'=>'session_id','domain'=>)); 数组中domain后面应该填什么</code>

你是不是跨域了?如果是跨域的话需要添加ini_set('session.cookie_domain', 'domain.com')跨域这个必须得开启。你试试

Statement:
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
Previous article:mysql In长度的问题?Next article:apache 403问题