开发者

Firefox drops the session variable

开发者 https://www.devze.com 2023-01-30 07:43 出处:网络
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 n

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

精彩评论

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