Re: fsockopen and session_start
| From: | Pedro Garre | Date: | Tue, 08 Mar 2005 13:56:30 +0000 |
| Subject: | Re: fsockopen and session_start | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210215@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
It works now. Thanks Jason.
I had never realized that once $_SESSION is set, and if you are not going to
modify it, the session could be closed. It does not seem a good programming
practice, thou.
On Tuesday 08 March 2005 05:15, Jason Wong wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
>
> On Monday 07 March 2005 22:02, Pedro Garre wrote:
> > I am using fsockopen to simulate a POST to another page (test_post.php)
> > within the same server.
>
> It's not clear how exactly you're executing your code. I suspect that you
> haven't closed the session before doing your simulated POST. Your order
> of execution should be something like:
>
> start session
> assign values to session
> close session
> do the simulated POST