I m in a real pickel:
我在做一个记录稿时,出于某种原因,“SESSION”变量没有从我的标识核对中排出。
I have tested this with an pre PHP Ver 5.2.12 and it worked. Have previously used this method. But the site I m using this method for now is PHP Ver 5.2.12
SO there are 2 differences between the two versions I have been able to notice, they are:
旧版本
页: 1 犯罪
又
OLD VERersion
届会时间:时间:0至2 1 P-4, 1 P-3, 1 FS, 1 NS
又the path for session.save_path are different in each version(does this matter??) This is my code for the logged in page:
LOGGEDIN PAGE
<?php
session_start();
$var_user = $_SESSION[ US ];
//echo $var_user;//ouputs nothing =0
//if not logged in
if(!isset($_SESSION[ US ])) {
header ( Location:index.php );
die();
}else if(isset($_SESSION[ US ])){
include( connect.php );
//rest of script goes here
}
页: 1
PAGE THAT CHECKS THE VARABILES FROM THE LOGIN PAGE TOP OF PAGE
<?php
session_start();
$var_pass =$_REQUEST[ PW ] ;
$var_user =$_REQUEST[ US ] ;
标题
$_SESSION["US"]= $var_user;
//echo "login success";
header ( Location:loggedin.php );
这绝对是我的头脑,可能只是一个小的错误,我不会产生任何想法。
Thanks in advance.