jasonsalas
IS-IT--Management
Hi everyone,
I just deployed a cookie-based script which worked fine locally on PWS to an NT server, but anything having to do with cookies isn't working. Actually, I've noticed that I can write a cookie and retrieve it's values within the same page, but I can't persist it and extract values from page to page.
In particular, I'm having users register on a page, which takes their values, writes them to a cookie, and then passes them to another page, displaying a customized message. But because the main page detects for the presence of the cookie first, the values aren't persisting, the page gets stuck in a loop, continually going back to the registration page, not finding the cookie.
I've racked my brain, and this really throws a wrench in my app's architecture. Here's a portion of how I'm writing a cookie to a page:
Response.Cookies("candidateOfTheDay"
("firstName"
= objRS("FirstName"
Response.Cookies("candidateOfTheDay"
("lastName"
= objRS("LastName"
Response.Cookies("candidateOfTheDay"
("graphic"
= objRS("GraphicURL"
Response.Cookies("candidateOfTheDay"
("party"
= objRS("Party"
Response.Cookies("candidateOfTheDay"
("officeSeeking"
= objRS("OfficeSeeking"
Response.Cookies("candidateOfTheDay"
("candidateID"
= objRS("CandidateID"
Response.Cookies("candidateOfTheDay"
("officeSeeking"
= objRS("OfficeSeeking"
Response.Cookies("candidateOfTheDay"
.Expires = expireDate
For Each objCK In Request.Cookies
Response.Write objCK & " = " & Request.Cookies(objCK) & "<br>"
Next
Thanks for the help!
I just deployed a cookie-based script which worked fine locally on PWS to an NT server, but anything having to do with cookies isn't working. Actually, I've noticed that I can write a cookie and retrieve it's values within the same page, but I can't persist it and extract values from page to page.
In particular, I'm having users register on a page, which takes their values, writes them to a cookie, and then passes them to another page, displaying a customized message. But because the main page detects for the presence of the cookie first, the values aren't persisting, the page gets stuck in a loop, continually going back to the registration page, not finding the cookie.
I've racked my brain, and this really throws a wrench in my app's architecture. Here's a portion of how I'm writing a cookie to a page:
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
Response.Cookies("candidateOfTheDay"
For Each objCK In Request.Cookies
Response.Write objCK & " = " & Request.Cookies(objCK) & "<br>"
Next
Thanks for the help!