Cookie problem.
Posted: Fri Nov 12, 2004 3:10 am
I am trying to make a site require username/password and I have achieved that using forms/cookies. I have 2 problems I can't figure out. When cookies are turned off or I go manually to one of the "secure" pages, the browser goes there and I can't prevent it. I have an if statement asking if the cookie is == '' and it recognizes that there is nothing there but it gives me an error saying that the variable ( that I call "cookie" which is the true or false statement that passes from the previous page letting the user log on or not) does not exist. I understand why but I guess my question is how can I make the browser redirect to an other page if there is no cookie there?
Hope I am understandable.
Hope I am understandable.