<?php
session_start();
if(!$username || !session_is_registered("username")) header("Location:index.php");
include("inc/connect.php");
include("inc/dbfunc.php");
include("inc/webfunc.php");
?>
<?php include "header.php";?>
<table width="777" border="0" cellpadding="0" cellspacing="0" class="border3-left">
<tr>
<td width="167" valign="top" background="file:///C|/Documents and Settings/Administrator.FLINK-TOM/妗岄潰/Code/jmc/jmc/image/ly_bj12.gif" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<? include "menu.php"; ?>
</td>
</tr>
</table></td>
这是main.php页面
现在的问题就是:这两个页面在window环境下的session是可以正常使用的,但是我把程序放到redhat环境下的时候,竟然到不了main.php,每次都是返回index.php,各位能不能帮我诊断一下是什么原因??谢谢
session_start();
if(!$username || !session_is_registered("username")) header("Location:index.php");
include("inc/connect.php");
include("inc/dbfunc.php");
include("inc/webfunc.php");
?>
<?php include "header.php";?>
<table width="777" border="0" cellpadding="0" cellspacing="0" class="border3-left">
<tr>
<td width="167" valign="top" background="file:///C|/Documents and Settings/Administrator.FLINK-TOM/妗岄潰/Code/jmc/jmc/image/ly_bj12.gif" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<? include "menu.php"; ?>
</td>
</tr>
</table></td>
这是main.php页面
现在的问题就是:这两个页面在window环境下的session是可以正常使用的,但是我把程序放到redhat环境下的时候,竟然到不了main.php,每次都是返回index.php,各位能不能帮我诊断一下是什么原因??谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货