Re: [PHP-DEV] Re: problems with ob_gzhandler From: Wez Furlong (wez <email protected>)
Date: 08/31/01

On 08/31/01, "Zeev Suraski" <zeev <email protected>> wrote:
> BTW, any chance you're using trans_sid? (can you check if
> php_session_start_output_handler() ends up being called for some reason?)

I'm not using trans_sid but I am using sessions.
My scripts generally do this:

if (!session_is_registered("sess")) {
    $sess = array();
    session_register("sess");
}

if (!broken_browser())
    ob_start("ob_gzhandler");
else
    ob_start();

The session handler is a custom handler against a mysql db.

If the scripts need to redirect, they do this:

session_write_close(); // Concurrency problems arise otherwise
header("Location: ...");
exit();

Hope that helps; I dont have time to get in there with a debugger
right now.

--Wez.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>