Re: R: [PHP] session_start() and fopen
| From: | Richard Lynch | Date: | Fri, 15 Sep 2006 18:39:44 +0000 |
| Subject: | Re: R: [PHP] session_start() and fopen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241840@lists.php.net to get a copy of this message | ||
On Thu, September 14, 2006 1:17 pm, Fabri wrote:
> Hi Christopher: this is just a simplified code, I use it to generate
> some
> xml file, no loop is present.
>
> Try it as it is: you will find that two files will be generated while
> it
> should be only one.
> If you remove 'session_start()' then only one file will be generated:
> that's
> correct!
I suspect you are seeing a browser issue...
If your browser chooses to access the URL twice, just to get the
content, there's not much PHP can do about that...
It's only triggered by the session_start() because the browser is
stoopid about cookies, in some fashion.
Since all browsers are stoopid about cookies in some fashion, this
should come as no surprise. :-)
--
Like Music?
http://l-i-e.com/artists.htm