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

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

WBOY
Release: 2016-06-06 20:06:37
Original
1422 people have browsed it

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

回复内容:

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

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

Related labels:
php
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