Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirection problem

Status
Not open for further replies.

irate

Programmer
Jan 29, 2001
92
GB
I am using the following code to redirect the browser if the users machine does not have a specific cookie, the page it is redirecting to DOES exist and is in the correct place but for some unknown reason I get a 404 page not found error. Can anyone shed some light on this?
[tt]
<%
currentUser = request.Cookies(&quot;userlogcookie&quot;)(&quot;User&quot;)
if len(currentUser) = 0 then
response.redirect(&quot;../hompage/nocookie.asp&quot;)
else
blah blah blah
end if
%>
[/tt]
 
are you sure it is located at &quot;../hompage/nocookie.asp&quot; ??

should this read homepage??

Tony
 
OH MY GOD I am such a moron, blind too... been sitting here way to long!

Thanks very much, I think I will go get some sleep now
 
:) I take it that it is working now?? It happens to the best of us so don't worry about it!!
 
Yep, it happens to everyone. Me anyway.LOL Rob
Just my $.02.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top