Guest_imported
New member
- Jan 1, 1970
- 0
I have a page in which users log into my website. If the login is successful, then a cookie named loginok is sent to them. I need all the other pages on the website to check for this cookie's existence before allowing users access to any pages. I have tried the code below at the top of each of my pages but have had no success. I basically check to see if loginok is smaller or greater than "" but this doesnt seem to work. Is there a way of just checking to see if the cookie exists? Can someone please help?
<%
If Request.Cookies("loginok"<>"" Then
Do Nothing
else
Response.Redirect("accessdenied.html"
end if
%>
Thanks
Mark
<%
If Request.Cookies("loginok"<>"" Then
Do Nothing
else
Response.Redirect("accessdenied.html"
end if
%>
Thanks
Mark