/    Sign up×
Community /Pin to ProfileBookmark

var cookies (need quick response)

can i have the codes that creates a cookie (that stores forever) and stores a variable that i can use again next time the page is loaded. its a rather big emergency i need it in less than a week. i understand its christmas and people have better things but it will save the people who use my websites a hell of a lot of time.

the variable is called “BID” and i am using it to redirect to different pages depending on the value.

i need it soon and i don’t know about cookies enough to do it myself.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KTspeedDec 23.2009 — http://www.quirksmode.org/js/cookies.html#script

This link will give you the code, and it explains how it works right below it.
×

Success!

Help @acid 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.18,
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,
)...