English 中文(简体)
Php 会话没有在火法毒素中起作用
原标题:Php session is not working in firefox
  • 时间:2012-05-21 18:55:22
  •  标签:
  • php
  • session

第1页上的会议:

<?php
    session_start( seguimento );
    $_SESSION[ seguimento ] =  lojas ;
?>

第2页上的会议:

<?php
    session_start( seguimento );

    if($_SESSION[ seguimento ]!== lojas ){
        echo  some html code 
    }
    else{
        echo  another html code 
    }
?>

当会话为LOJA 时,我试图用它来显示一些 html 代码,当会话为 LOJA 时,我试图用它来显示一些 html 代码, 当会话为空时, 我试图用它来显示另一个 html 代码 。 会话在 IE、 铬、 歌剧和 safari 上工作, 但不在 firefox 上工作 。

有人知道发生了什么吗?

最佳回答

检查服务器的日期设置。 检查您的计算机的日期设置。 如果您的服务器日期和时间设置关闭, PHP 可能会设置会话 cookie, 从而删除会话 cookie 。 Firefox 对此比较敏感。 IE 并不。 这在过去发生过好几次。 这是某种内容管理系统的一部分吗?

问题回答

暂无回答




相关问题
why the session in iis automatically log out?

I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Can I get the size of a Session object in bytes in c#?

Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...

提供严格分类的出席会议物体

提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......

PHP Session is not destroying after user logout

I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...

热门标签