blodefood
09-18-2003, 02:08 PM
I am desiging a newsletter for my company where an email recipient receives a link. The link passes the recipient through an asp page that sets a cookie.
The cookie has a unique filename -- a mix of letters and numbers and, of course unique text strings inside it. The asp page then sends them to page one of the newsletter hosted on the website.
What I want to have happen is for page one, page two, and all the other pages in the newsletter to read the cookie so that the recipient can navigate all the pages. If someone "wanders in" off the internet and happens to get to page one by fluke, there is no cookie present, so they are redirected to our main website page. This is a polite way of keeping them out of semi-sensitive information.
I have to use client side (JavaScript) to do this and I am very much a newbie to the syntax. I have everything else in place, but this JavaScript is crucial to getting this to work.
Would appreciate any assistance anyone can offer. Thanks.
The cookie has a unique filename -- a mix of letters and numbers and, of course unique text strings inside it. The asp page then sends them to page one of the newsletter hosted on the website.
What I want to have happen is for page one, page two, and all the other pages in the newsletter to read the cookie so that the recipient can navigate all the pages. If someone "wanders in" off the internet and happens to get to page one by fluke, there is no cookie present, so they are redirected to our main website page. This is a polite way of keeping them out of semi-sensitive information.
I have to use client side (JavaScript) to do this and I am very much a newbie to the syntax. I have everything else in place, but this JavaScript is crucial to getting this to work.
Would appreciate any assistance anyone can offer. Thanks.