Hi,
I'm running PHP 4 on a windows server where even IIS is running. This is my in-house setup with MySQL and MS SQL running on the same server.
Problem: The session variables used in my code are not carried to all the pages. There is a login page in my site which checks for the username and password and redirects to a welcome page if authenticated.
In the login page I am setting up the session variable and assigning a value and when I try to check that in the redirected welcome page, it is null. But, the same code runs perfectly using PHP 4 on Linux server. What could be the problem when running on windows server??? I have also upgraded my browser to the latest version (IE 6.0 service pack 1).
Code:login page
session_start();
$row=mysql_fetch_array($result);
$_SESSION["login"]=$row[app_no];
header("Location: welcome.php");
Code: welcome page
session_start();
if($_SESSION["login"]==""){
header("Location: login.php");
}
can any one help me in solving this issue??