I have been playing with this at home.
Perhaps this makes it a bit easier.
boolean setcookie ( string name [, string value [, int expire [, string
path [, string domain [, int secure])
boolean setcookie (name, value, expire, path, domain, secure)
Fwiw, a solution from another project:
In your code, it appears you are attempting to determine the value of the cookie
immediately upon
setting. The value of the cookie is NOT available at this point; a new page must be
opened.
Why are you setting time to 0? If you want cookie to disappear at end of the session,
use NULL.
Are y
oes not change the cookie file itself.
what must I do to accomplish that?
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Fireborn Silvaranth" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 9:41 AM
Subject: Re: [PHP] problems
hat must I do to accomplish that?
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Fireborn Silvaranth" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 9:41 AM
Subject: Re: [PHP] problems with cookies and PHP
>
> >print "$_COO
A couple problems may exist:
1) If you're trying to do this all in the same script, it's not going to
work. You can't set a cookie and use it (with the value you've just
set) in the same script (in the same request). You can only use cookies
that have been sent back to your script from th
5 matches
Mail list logo