PDA

View Full Version : cookie remembering language choice



chechu
01-11-2007, 07:54 AM
Hey,
On lots of sites, at your first visit, you have to chose your language. That information is stored in/by a cookie, so the next time you visit that site, you are immediately forwarded to the language you choose.

How does such a cookie look like ?

chechu
01-11-2007, 11:26 AM
DD, why has this been moved ? To where ?

chechu
01-11-2007, 11:28 AM
Okay, found it back. Sorry !

chechu
01-12-2007, 04:48 PM
Any suggestions ?

mburt
01-14-2007, 09:28 PM
Hmm.. I must've posted while this was being moved. I said something along the lines of:

PHP is probably the easiest way to do this:

to set a cookie

setcookie(cookiename,content,time()+3600);
to retrieve cookie data

$myvar = $_COOKIE[cookiename];