ma5ect Posted June 26, 2008 Share Posted June 26, 2008 Hi, On my website i am trying to end a session and return to another page but i keep gettin this error.. Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. <? session_start(); if (!session_is_registered(myusername)) { header("location:mainlogin.php"); } ?> <html> <head><title>Welcome</title> </head> <body> <h1> Login successful</h1> <p> <a href="logout.php"> Log Out!</a></p> </body> </html> Link to comment https://forums.phpfreaks.com/topic/112002-solved-session-login-and-logout/ Share on other sites More sharing options...
trq Posted June 26, 2008 Share Posted June 26, 2008 header("Location: mainlogin.php"); Link to comment https://forums.phpfreaks.com/topic/112002-solved-session-login-and-logout/#findComment-574929 Share on other sites More sharing options...
ma5ect Posted June 26, 2008 Author Share Posted June 26, 2008 header("Location: mainlogin.php"); thanx thats worked...but now the same message is shown when i click on other links on the page once i have logged in.. Link to comment https://forums.phpfreaks.com/topic/112002-solved-session-login-and-logout/#findComment-574938 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.