/    Sign up×
Community /Pin to ProfileBookmark

Javascript Cookie help

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

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @master_splinter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...