Page 1 of 1

sessions and output buffering...

Posted: Tue Oct 14, 2003 11:29 am
by LonelyProgrammer
Hi all...

I have problem with PHP pages that uses ob_start() and start_session() on the same page. The session is created okay (I checked the session directy), but when I move over to another page, start_session() will create a new session instead of resuming the one created earlier. (When I access the second page, a new session with 0KB is created. I verifiy that PHP is trying to access that session, instead of the previously-created one, by matching the session id).

Disable output buffering, and my session works fine. Anyone have any advice as to how could I get sessions and output buffering working together?

Any help will be appreciated!
Thanks in advance.