You need to test for your cookie variable = to ''.

For example:

If Request.Cookies("slo-pitch") = '' then
 Redirect to intro
End if

Since this is a varaiable I would not use the .com in your variable
name.  That may be part of the problem also.


Pete Lundrigan 
Media Resources Center 
Academic Web Support 
316.978.7759
http://www.mrc.twsu.edu/
[EMAIL PROTECTED] 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:Cadieux.Tim@;fin.gc.ca] 
Sent: Friday, October 18, 2002 1:43 PM
To: ActiveServerPages
Subject: using cookies to redirect

I want to make users look at my Intro page at least once, then set a
cookie
for 6months and forward them to my Default page..i'm using the Below
code,
but it's not working

<Default.asp>
<%
If IsNull(Request.Cookies("slo-pitch.com")) Then
     response.Redirect("intro.asp")
end if
%>

<intro.asp>
<%
Response.cookies("slo-pitch.com").Expires = Date + 180
Response.Cookies("slo-pitch.com")="viewed"
%>

---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to