Re: [PHP] Setting cookie on first visit

2005-03-02 Thread The Disguised Jedi
Why not use sessions instead? us2.php.net/session On Wed, 2 Mar 2005 11:42:02 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > Tom Whitbread wrote: > > I am using a cookie to detect what skin a user wants to display. The > > problem is if a user visits the site for the first time the coo

Re: [PHP] Setting cookie on first visit

2005-03-02 Thread Richard Lynch
Tom Whitbread wrote: > I am using a cookie to detect what skin a user wants to display. The > problem is if a user visits the site for the first time the cookie is > not being set. I am detecting if its being set or not with > > if(!isset($_COOKIE['skin'])){ ... } > > It's not setting the cookie un

Re: [PHP] Setting cookie on first visit

2005-03-02 Thread Dan Tappin
The manual detail this issue: http://ca.php.net/setcookie You can't see the cookie until you hit the next page. There is no way view the newly set cookie. Dan Tappin On Mar 2, 2005, at 2:18 AM, Tom Whitbread wrote: I am using a cookie to detect what skin a user wants to display. The problem is

RE: [PHP] Setting cookie on first visit

2005-03-02 Thread yangshiqi
ssage- From: Tom Whitbread [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:18 PM To: php-general lists Subject: [PHP] Setting cookie on first visit I am using a cookie to detect what skin a user wants to display. The problem is if a user visits the site for the first time the cookie is

[PHP] Setting cookie on first visit

2005-03-02 Thread Tom Whitbread
I am using a cookie to detect what skin a user wants to display. The problem is if a user visits the site for the first time the cookie is not being set. I am detecting if its being set or not with if(!isset($_COOKIE['skin'])){ ... } It's not setting the cookie untill a user refreshes the page o