Forum Moderators: DixonJones
If this IS possible, then how would I go about doing it?
If its NOT possible, any suggestions on achieving the same results?
Definitely possible. Of course it won't work if the user has cookies switched off - most people don't, but you might want to add an FAQ about that.
How to set and read cookies - either:
1) server-side (in which case it depends on which programming language you're using) or
2) client-side, with Javascript. The Javascript book published by O'Reilly has (AFAIR) a decent explanation of how to do this. This won't work if the user has Javascript switched off, of course.
NB
Server-side = on your web server
Client-side = in the visitor's browser
Of course the cookie itself is always set in the user's browser - but your web server is able to manipulate the cookie values remotely (which is the whole point of cookies).
A 'gotcha' to watch out for: P3P privacy policies and IE6. Once you've got it working basically, check that IE6 isn't blocking your cookies - if it is then you need to find out about P3P.
HTH, and best wishes,
A.