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

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

WBOY
WBOYOriginal
2016-06-13 11:44:59982browse

关于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 />


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

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