Re: cookie



On 31 Dec, 09:51, "~yby~" <manuele.gazza...@xxxxxxxxx> wrote:
Hello everybody, I've got some troubles with a cookie and 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 a cookie with the two variables css_user and
css_user_id; when I control the cookie values (using
print_r($_COOKIE);) everything is ok. the problem is that this cookie
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! :)

Your cookie is set to expire on the 2nd of Jan 1970. Try adding time()
to $tempo

C.
.



Relevant Pages

  • Re: [PHP] base64-encoding in cookies?
    ... The sender is in the driver's seat and the receiver must follow suite. ... PHP application is usually what set the cookie in the first place. ... You have control over the value you insert into the cookie. ...
    (php.general)
  • Re: how do you set a cookie for axshdocvw
    ... "Teo Lachev" wrote in message ... > WebBrowser control. ... >> I tried to put the cookie string in the header parameter of navigate. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: how do you set a cookie for axshdocvw
    ... this thread really boils down to how to manually set a cookie in the ... WebBrowser control. ... > I tried to put the cookie string in the header parameter of navigate. ... > filtered out before it reaches the report server. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Multiple Instances of AxWebBrowser
    ... navigating, another control is not able to recognise the cookie. ... You set a cookie with InternetSetCookie. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Is my logic correct on this page in terms of execute order?
    ... control 1 - reads a cookie and executes stuff based on that ... control 2 - reads the same cookie and can also set the value ... the issue is that the postback page reads the cookie ...
    (microsoft.public.dotnet.framework.aspnet)