Bug #14695 Updated: session_destroy affects output
| From: | ccjeagle at ms6 dot hinet dot net | Date: | Wed, 26 Dec 2001 04:10:10 +0000 |
| Subject: | Bug #14695 Updated: session_destroy affects output | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75001@lists.php.net to get a copy of this message | ||
ID: 14695
User updated by: ccjeagle@ms6.hinet.net
Reported By: ccjeagle@ms6.hinet.net
Old Status: Feedback
Status: Open
Bug Type: Session related
Operating System: FreeBSD4
PHP Version: 4.1.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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