Cookie Problems

A

Athmaus

I have a techincal support form. And when the user hits submit i want to give
them a cookie. When they try to access this page again in a 24-48 hour time I
want the page to identify the cookie and redirect them to an alternative
page. Yet i am having a problem with the page.

Here is my code for the to give the cookie:

Dim prod
prod = "test"

Response.Cookies("testing")= prod
Response.Cookies("testing").Expires = Date + 1



Here is the code to read the cookie:

dim show, verify

verify = "test"

show = Request.Cookies("testing")

If verify = show
Then Response.Redirect "http://www.google.com"

End If


Any suggestions?

Thanks!
 
A

Athmaus

I couldnt give a "specific" problem becasue my debugger on IIS was messed up.
Once they got it up and running agin i foudn the problem.

I forgot to put an "End If" in once section since adding the reponse.cookie
and than i had to chnage how to obatain the date by using the DateAdd()
function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

cookie testing 1
Missing data in cookie 4
Cookies expire immediately, not when set to expire 2
Cookie issue(cant fix it with anyhting) 5
Cookie Problems 1
cookie trouble 3
cookie problems 1
Cookie Problems 0

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top