Jump to content

[SOLVED] session login and logout


ma5ect

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.