English 中文(简体)
PHP 问题
原标题:PHP session problem
  • 时间:2010-12-10 09:59:52
  •  标签:
  • php
  • session

Below is my script :

if($redirect==1)
{
?>
    <script>
    setTimeout("gotoLink()",1000);
    function gotoLink()
   {
        location.href= wycomments.php ;
  }
    </script>

<?php           
 $_SESSION[ BROADCAST_DOWNLOAD ]=1; 
}
?>

因此,我不领取工资。 php

任何帮助请。

最佳回答

你们知道这些事情。

  1. Have you started session in wycomments.php
  2. Have you stated session in this code sample file
  3. What is the wrong if I put $_SESSION above the <script> start
 if($redirect==1)
  {
     $_SESSION[ BROADCAST_DOWNLOAD ]=1; 
      <script>
     setTimeout("gotoLink()",1000);
     function gotoLink()
      {
           location.href= wycomments.php ;
      }
     </script>
  }
问题回答

如果看不到整个法典,你似乎不会说什么。

session_start();

页: 1

session_start()。

i think you unset the session so that you are not getting the result... do session_start(); in wycomments.php page





相关问题
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 ...

热门标签