I am trying to create a login page and upon successful login, it will register the username as session variable using session_register("username") and then redirect it to another page call main.php. Main.php will start a session and check to make session variable username is registered using session_is_registered("username") before allowing the user to view it's content.
My problem is that after a successful login and when redirecting to main.php, my script was unable to find the username session variable. However, if I refresh my browser (IE 5.5), then everything seems ok. Could anyone please help me with this?? Thanks.