The first parameter of setcookie
is the cookie name and the second the cookie value. So in this case $_SESSION['lang']
is the cookie name and time() + (3600 * 24 * 30)
the value:
setcookie($_SESSION['lang'], time() + (3600 * 24 * 30));
Gumbo
2010-02-28 13:07:59