You'll never know how much I thank you!
Alvaro G Vicario wrote:[color=blue]
> *** p2 wrote/escribió (22 Aug 2005 17:36:31 -0700):[color=green]
> > setcookie ('lang', $lang, 77000);[/color]
>
> From manual:
>
>
> usage:
>
> bool setcookie ( string name [, string value [, int expire [,
> string path [, string domain [, bool secure]]]]] )
>
> expire:
>
> The time the cookie expires. This is a Unix timestamp so is in number of
> seconds since the epoch. In otherwords, you'll most likely set this with
> the time() function plus the number of seconds before you want it to
> expire. Or you might use mktime().
>
> time()+60*60*24*30 will set the cookie to expire in 30 days. If not set,
> the cookie will expire at the end of the session (when the browser closes).
>
>
> Since 77000 is less than a day, you're telling the browser that cookie
> should expire somewhere in 1970 (the epoch).
>
> --
> -- Álvaro G. Vicario - Burgos, Spain
> --
http://bits.demogracia.com - Mi sitio sobre programación web
> -- Don't e-mail me your questions, post them to the group
> --[/color]