I have a script that executes starting and registering a session, the code looks liken this:
session_start();
session_register("uname");
$uname=$name;
this part of the script is 'script.php?id=login' and it redirects to script.php?id=main' after the login is successful. The login works perfectly but when I am redirected back to the main page it acts as If I am logged out and in my script i have a block of code(if(session_is_registered("uname"){displayhtmlforregsiteredsession}) that displays a kind of navigation thing if the session is registered and if the session is not registered it doesnt display it. Everytime the login is successful it redirects to the main page and I am shown the logged out, please login text?