Bug #14695 Updated: session_destroy affects output

From: Date: Wed, 26 Dec 2001 05:16:11 +0000
Subject: Bug #14695 Updated: session_destroy affects output
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75006@lists.php.net to get a copy of this message
ID: 14695 Updated by: yohgaki Reported By: ccjeagle@ms6.hinet.net Old Status: Open Status: Feedback Bug Type: Session related Operating System: FreeBSD4 PHP Version: 4.1.0 Previous Comments: ------------------------------------------------------------------------ [2001-12-25 23:11:12] ccjeagle@ms6.hinet.net sorry, "walk around". ------------------------------------------------------------------------ [2001-12-25 23:10:10] ccjeagle@ms6.hinet.net yes sure. All ohter functions work fine for me till now. Moving the session_destroy() to the end of all scripts seems to be a work around. ------------------------------------------------------------------------ [2001-12-25 22:17:23] yohgaki@php.net Are you using and enable trans-sid? ------------------------------------------------------------------------ [2001-12-25 21:44:59] ccjeagle@ms6.hinet.net Take a look at this: <?php session_start() ; $_SESSION["username"] = "abc" ; echo "<p>First Line Here</p>" ; session_destroy() ; echo "<p>Second Line Here</p>" ; ?> The output source code becomes : <p>First Line Here</<p>Second Line Here</p>p> ------------------^^^----------------------^^ ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14695&edit=1

« previous php.dev (#75006) next »