Re: session_start/session_write_close creates multiple session cookie headers. How to fix this.

From: Date: Fri, 14 Jul 2006 01:11:26 +0000
Subject: Re: session_start/session_write_close creates multiple session cookie headers. How to fix this.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239453@lists.php.net to get a copy of this message
Mathijs wrote:
Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are multiple session cookie headers set. I Personally think that one is enough :P. How can i make it so that it just sets just one and not set this header every time i call session_start or session_write_close. Because i don't know when the cookie is set.
I think this will be an either/or situation. Either it only sends one session cookie header and you don't use session_write_close all over the place.. or, it sends multiple cookies and you do use session_write_close all over the place. The internals of php would set this behaviour, not something you can change without changing the C code. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#239453) next »