Home > Backend Development > PHP Tutorial > 关于ie的session丢失有关问题.求各路大神帮忙下

关于ie的session丢失有关问题.求各路大神帮忙下

WBOY
Release: 2016-06-13 11:44:59
Original
981 people have browsed it

关于ie的session丢失问题..求各路大神帮忙下
代码很简单

<br />session_start();<br />header("Content-Type: text/html;charset=utf-8");<br />setcookie ('username', "aa",time()+3600*24*365);<br />$_SESSION['username'] = "a"; <br />echo "PHPSESSID:".$_COOKIE['PHPSESSID'];<br />
Copy after login


在firefox,chrome中能正常显示PHPSESSID,但在ie中有写入session,却没法写入到 $_COOKIE['PHPSESSID'],导致后面调取不到session内容。求解答
环境IE6

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