php3-list | 199903
Date: 03/25/99
- Next message: Martin Storsjö: "Re: [PHP3] Free hosting?"
- Previous message: Brian Schaffner: "RE: [PHP3] "loading please wait" screen...how to?"
- In reply to: Charles Reese: "Re: [PHP3] SetCookie() doesn't set if using Header() after it."
- Next in thread: Ross Keatinge: "Re: [PHP3] SetCookie() doesn't set if using Header() after it."
- Reply: Ross Keatinge: "Re: [PHP3] SetCookie() doesn't set if using Header() after it."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I do this code all day long...
<?
/*
* About 20 or 30 lines of code to access the database, then...
*/
/*
* Delete the cookie and return home.
*/
SetCookie("sCookieID");
Header("Location: /poi/index.html");
exit;
?>
I never have any problems with Netscape or IE. This program is used to
delete the cookie when the user logs out. Once the cookie is gone, they
are sent to the start page. Worked the first time and I have not had any
problems with it. I'm running FreeBSD-3.1-RELEASE, PHP3-3.0.7-module,
Apache-1.3.4.
Matthew
At 12:02 PM 3/23/99 +0000, Charles Reese wrote:
>On thinking on this a bit it may be a sequence problem. If the browser gets
>the header before it acts on the set cookie it may reject the cookie because
>it is not in the correct domain. I did have a problem when I was setting
>three cookies which could be explained by this. Between the first and
>second cookie I was updating my database but for the second to third cookie
>there was no extra code. You might try putting some delay code in and see
>what happens.
>
>Cheers
>Charlie Reese
>
>
>------------------------------------------------------
>One Unix* to Rule them all, One Resolver to Find them,
>One IP to Name them all, In the Zone that Binds them.
>------------------------------------------------------
>*FreeBSD of course.
>
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive:
http://www.php.net/mailsearch.php3
>List administrator: zeev-list-admin <email protected>
>
>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Martin Storsjö: "Re: [PHP3] Free hosting?"
- Previous message: Brian Schaffner: "RE: [PHP3] "loading please wait" screen...how to?"
- In reply to: Charles Reese: "Re: [PHP3] SetCookie() doesn't set if using Header() after it."
- Next in thread: Ross Keatinge: "Re: [PHP3] SetCookie() doesn't set if using Header() after it."
- Reply: Ross Keatinge: "Re: [PHP3] SetCookie() doesn't set if using Header() after it."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

