|
Posted by ~yby~ on 01/02/08 09:29
On 31 Dic 2007, 11:22, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@gmail.com> wrote:
> On 31 Dec, 09:51, "~yby~" <manuele.gazza...@gmail.com> wrote:
>
>
>
>
>
> > Hello everybody, I've got some troubles with acookieand maybe
> > someone can help me...
> > this is the code I wrote
>
> > $tempo=30*24*60*60*1000;
> > setcookie ("css_user",$css_user,$tempo);
> > setcookie ("css_user_id",$css_user_id,$tempo);
>
> > in order to set acookiewith the two variables css_user and
> > css_user_id; when I control thecookievalues (using
> > print_r($_COOKIE);) everything is ok. the problem is that thiscookie
> > is considered just like a "session" and when I close the browser it's
> > deleted!
>
> > Where am I mistaking?!
>
> > thank you very much in advance! :)
>
> Yourcookieis set to expire on the 2nd of Jan 1970. Try adding time()
> to $tempo
>
> C.- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -
!!!thank you very much!!!!
[Back to original message]
|