trans-sid broken, when used with ob_*()

From: Date: Tue, 23 Oct 2001 16:26:52 +0000
Subject: trans-sid broken, when used with ob_*()
Groups: php.dev 
Request: Send a blank email to php-dev+get-68851@lists.php.net to get a copy of this message
When using url rewriting / trans-sid together with output buffering, no session id is added to links, etc. Have a look at this example: <?php ob_start(); ini_set('session.use_cookies', 0); ini_set('session.use_trans_sid', 1); session_start(); ?> <a href="foo.php">foo</a> <?php $buffer = ob_get_contents(); ob_end_clean(); echo $buffer; ?> Its output is simply <a href="foo.php">foo</a> It works fine with <?php ini_set('session.use_cookies', 0); ini_set('session.use_trans_sid', 1); session_start(); ?> <a href="foo.php">foo</a> This is with PHP 4.2.0-dev, today's CVS. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

« previous php.dev (#68851) next »