Hi,
I am dong a small website project using PHP,Mysql.
Now facing certain prob with session. Am using session to check the login status of user on a required page.
I have 2 files login.php and login2.php. When a values login and password is posted to login2.php, both the posted variables are validate them.
Below code is from login2.php which gets exe after successful validation:
session_start();
session_register("sess_login");
$sess_login=$login;
header("Location: index.php");
now the prob is after i redirected to index.php, am not able to access session var $sess_login. Remember register_glaobals var is set to "On".
But if i replace header with javascript window.location=index.php, it works.
Refering to this can anyone tell why it happens so..
Thanks
OM