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
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
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.
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
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
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
> 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:/
> 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
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
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
Thanks Angie, I was just in the process of seperating out my cookie
setting and that is just what I needed. Works like a charm.
Thanks again.
-Nick
> Also, Please keep in mind that on windows, you will not be able to
> successfully set a cookie if your script redirects to another page using
> the
Also, Please keep in mind that on windows, you will not be able to
successfully set a cookie if your script redirects to another page using
the typical header("Location:.."); command. Instead, you have to print
out headers to the page that uses meta tag refresh to refresh the page
to a new url lo
You can't set a cookie in a page and use it immediately. From the manual:
"Cookies will not become visible until the next loading of a page that the
cookie should be visible for. To test if a cookie was successfully set,
check for the cookie on a next loading page before the cookie expires. "
--
13 matches
Mail list logo