|
|
|
|
|
| | |
|
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Cookies |
From: |
Charles |
Date: |
5/4/2000 10:35:07 AM |
IP: |
209.179.82.2 |
I am trying to check if a cookie exists then redirect a user depending on if it exists or not. I am able to do this with cookies that I wite but unable to with a cookie created by my MIVA shopping cart. The cookie contains 32 characters made up of numbers and letters.
My code looks like this:
<%
Dim varID
varID = Request.Cookies("htscallerid")
if (varID = "") then
Response.Redirect ("http://www.fex.com")
else
Response.Redirect ("http://www.fexmall.com")
end if
%>
The problem is that the cookie appears to be blank. In this case the browser will be redirected to fex.com. If I try to write the cookies contents, I get a blank screen. The cookie is not blank however.
Thanks in advance for your help!
Charles |
|
|
|
|
|
|
|
|
|
|
|
|