Jump to content

user authentication


forumsudhir

Recommended Posts

Assuming you're using cookies for logging in (and the cookie names are "username" and "password", you could do something like:

if (!isset($_COOKIE["username"]) || !isset($_COOKIE["password"]))
{
  include("mylogin.php");
}
else
{
  //your member page info
}

 

That's very simple though. You should also check if the username is correct, if the password is correct for that username, and so on.

 

Link to comment
https://forums.phpfreaks.com/topic/115378-user-authentication/#findComment-593160
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.