PDA

View Full Version : How to eat cookies



code_junky
08-03-2008, 01:52 AM
How do I put a cookie on my site to keep track of user info?

Nile
08-03-2008, 02:17 AM
This always helps me with cookies:
http://www.quirksmode.org/js/cookies.html

tfit
08-03-2008, 04:11 PM
Or use cookiemonster :p. Sorry about that.

TheJoshMan
08-03-2008, 04:49 PM
I usually try to use my mouth to eat cookies. I'm not sure about he rest of everyone else, but that's just how I do it. lol

tfit
08-06-2008, 05:39 PM
I see more jokes than real help has been offered and I like to set the records straight this time.

Always in need of help, check w3school:
http://www.w3schools.com/JS/js_cookies.asp

techno_race
08-14-2008, 11:19 PM
http://www.devshed.com/c/a/JavaScript/Using-Cookies-With-JavaScript/

webdesignernew
08-18-2008, 08:00 AM
Google analytics also has some tracking code you can place on your site to check traffic

jscheuer1
08-18-2008, 02:01 PM
I just moved this to other because it has almost nothing to do with HTML (where I originally found it). Javascript cookies are OK for some things, but depending upon what you mean by 'track users', server side methods may be much better. I don't know anything about Google analytics, but I would suspect that it is a hybrid - probably activated by javascript on your site and tracked server side on the Google server. If you need that kind of functionality or more, it would be preferable to have it all server side on your host. Ask your host what they have available.

jr_yeo
08-19-2008, 01:49 PM
I'm not sure about he rest of everyone else,

sorry :( can't resist. 'the' :cool:

magicyte
08-24-2008, 09:21 PM
www.w3schools.com. look around here for some useful cookie stuff.

-magicyte