开发者

Firefox drops the session variable

I just have a simple session start and assigned a session variable on login. However when I switch pages, the session variable does not stick in Firefox. I can still see the session is there but just not the variable. In IE7, IE8, Chrome, and Safari, it works and sticks. What is happening in Firefox and how can I fix it?

Here is a snippet of the code.

session_start();

if ($_POST['login']) :
$_SE开发者_JAVA技巧SSION['loggedin'] = 1;
endif;


Seems to be a client side issue. Probably Firefox does not send the session cookie.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜