PDA

View Full Version : cookie remembering language choice



chechu
01-11-2007, 08: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, 12:26 PM
DD, why has this been moved ? To where ?

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

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

mburt
01-14-2007, 10: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];