/    Sign up×
Community /Pin to ProfileBookmark

Setting Multiple Values for one Cookie

Hi everyone! For my website at [URL]http://sockigami.com[/URL] , people will be able to rate models with a 1-5, and I was wondering how I could tell if they rated each one so they couldn’t rate again, without using a cookie for each model, because there’s eight models right now, so I don’t want eight cookies. Can I make an array or something?

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@NogDogSep 08.2006 — You could make an array and then use [url=http://www.php.net/manual/en/function.serialize.php]serialize() and unserialize()[/url] to store it in and retrieve it from the cookie.
Copy linkTweet thisAlerts:
@chesemonkylomaauthorSep 08.2006 — yes! thank you, i forgot!
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYSep 08.2006 — [I]sock folding?![/I]
Copy linkTweet thisAlerts:
@chesemonkylomaauthorSep 09.2006 — I'm sorry if I offended you by asking a question about a website you don't appreciate.
Copy linkTweet thisAlerts:
@boeing747fpSep 09.2006 — just FYI... try looking at your site in IE7... really messed up ?
Copy linkTweet thisAlerts:
@chesemonkylomaauthorSep 09.2006 — Yeah, I know, I'll get on that eventually don't worry!! lol
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYSep 09.2006 — I'm sorry if I offended you by asking a question about a website you don't appreciate.[/QUOTE]
Haha, no you didn't offend me, i was just expecting female models, not...socks!?
×

Success!

Help @chesemonkyloma 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 5.24,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...