martinjsmith
12-08-2002, 02:11 PM
Hi,
I am using cookies on my site to store users logins and passwords and then at the top of every page on my site I have an IF statement which checks to see if the login/password combination is in my MYSQL database. If it is then the page is displayed, othewise an login error message is shown. This all works perfectly most of the time but I have found that some of my users get the error message on screen even when they enter their details correctly. This error is fixed when they reduce the "Internet Security" in their Internet Options panel. Is there a way I can make it so they do not have to do this as it is very annoying.
THe code I use to set the cookie is below:
setcookie("loginCookie", $login);
setcookie("passwordCookie", $password);
and at the top of every page I use:
if (validateUser($loginCookie, $passwordCookie) == "okstudent")
{
//display page code
}
else
{
//display error message
}
The validateUser() function returns "okstudent" if the current login and password cookies are found in the MYSQL database.
Any comments welcome...
I am using cookies on my site to store users logins and passwords and then at the top of every page on my site I have an IF statement which checks to see if the login/password combination is in my MYSQL database. If it is then the page is displayed, othewise an login error message is shown. This all works perfectly most of the time but I have found that some of my users get the error message on screen even when they enter their details correctly. This error is fixed when they reduce the "Internet Security" in their Internet Options panel. Is there a way I can make it so they do not have to do this as it is very annoying.
THe code I use to set the cookie is below:
setcookie("loginCookie", $login);
setcookie("passwordCookie", $password);
and at the top of every page I use:
if (validateUser($loginCookie, $passwordCookie) == "okstudent")
{
//display page code
}
else
{
//display error message
}
The validateUser() function returns "okstudent" if the current login and password cookies are found in the MYSQL database.
Any comments welcome...