Javascript Cookie Help

They have: 1 posts

Joined: May 2005

Hi there.

I need some help with cookies. What I need to do is be able to set 2 cookies from the one script.

When the user comes to a gateway page they have 2 links they can click, each going to a separate location. When they click the link they will be hit with a regulatory page (different for each link), they will have to click "I Confirm", set the cookie, and enter the site. The next time they come back to the gateway, click the same link, they sould enter straight in, not be hit with the " I Confirm" again. The cookie should expire after 30 days, and they will have to do the process again.

In brief - one page - 2 links - fire up 2 separate pages and set 2 separate cookies...

Can this be done?

Thanks in advance!!!

MS