Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-26 Thread Joseph L. Mueller
to run a DNS name server for the LAN. Randy Clamons Systems Programming Novaspace.com Original Message From: "tony yau" <[EMAIL PROTECTED]> To: php-windows@lists.php.net Date: Fri, Feb-25-2005 12:41 PM Subject: Re: [PHP-WIN] Re: Cookie Problems on Localho

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-25 Thread Randy Clamons
ame server for the LAN. Randy Clamons Systems Programming Novaspace.com > Original Message > From: "tony yau" <[EMAIL PROTECTED]> > To: php-windows@lists.php.net > Date: Fri, Feb-25-2005 12:41 PM > Subject: Re: [PHP-WIN] Re: Cookie Problems on L

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-25 Thread tony yau
is your browser blocking the cookie? "Joseph L. Mueller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Luis Moreira wrote: > > > You can always try to set a cookie, but wether the browser allows it > > or not, it's a whole different ball game. > > I believe your problem lies here.

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-25 Thread Joseph L. Mueller
Luis Moreira wrote: You can always try to set a cookie, but wether the browser allows it or not, it's a whole different ball game. I believe your problem lies here. Anyway, the two scripts I attach, I have just tried, and the cookie was set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread trlists
On 23 Feb 2005 M. Sokolewicz wrote: > both 'localhost' and any ip are not accepted as valid > domain-identifiers in cookies (as per RFC). This simply means you're > best off leaving them empty. As far as I can tell this is incorrect. I think the relevant RFCs are 2109 and 2695. Both strongly

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Luis Moreira
You can always try to set a cookie, but wether the browser allows it or not, it's a whole different ball game. I believe your problem lies here. Anyway, the two scripts I attach, I have just tried, and the cookie was set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I ALLOWED IT. The s

RE: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Mikey
> Don't know if this will work, but have you tried setting an > entry in your hosts file (C:\WINDOWS or > C:\WINNT\system32\drivers\etc) for your machine name that > points to 127.0.0.1? > > Eg: > 127.0.0.1 mymachine Whoops! Forgot to say that you should then access your site using http:/

RE: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Mikey
> That still leaves the problem of how to test cookies and > sessions on a local system. Don't know if this will work, but have you tried setting an entry in your hosts file (C:\WINDOWS or C:\WINNT\system32\drivers\etc) for your machine name that points to 127.0.0.1? Eg: 127.0.0.1 mymachin

[PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Joseph L. Mueller
M. Sokolewicz wrote: Joseph L. Mueller wrote: I am testing some PHP code (example 15.5 from Sams Teach Yourself PHP MySQL, PHP and Apache in 24 Hours). I am running running PHP 5.0.3 and Apache 2.0.43 on my WinXp Home system. My problem is I cannot seem to set a cookie. I tried using "localhost

[PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread M. Sokolewicz
Joseph L. Mueller wrote: I am testing some PHP code (example 15.5 from Sams Teach Yourself PHP MySQL, PHP and Apache in 24 Hours). I am running running PHP 5.0.3 and Apache 2.0.43 on my WinXp Home system. My problem is I cannot seem to set a cookie. I tried using "localhost" and "127.0.0.1" for