Have a family website which requires username and password to access. I have the code to set a cookie ("user") upon successfull login.
However, I cannot figure out how to allow access to the site by checking to see if the "user" cookie has been previously set (i.e. they have logged in before and are authorized to enter the site.)
Currently using session variables to restrict access to page, but if anyone can provide code to check for "user" cookie, and allow/deny access based on that cookie, I would be most grateful.
Thanks in advance.
However, I cannot figure out how to allow access to the site by checking to see if the "user" cookie has been previously set (i.e. they have logged in before and are authorized to enter the site.)
Currently using session variables to restrict access to page, but if anyone can provide code to check for "user" cookie, and allow/deny access based on that cookie, I would be most grateful.
Thanks in advance.
Comment