[phplib] error with $sess->delete() From: Kenneth Siu (kenneth <email protected>)
Date: 11/25/00

Hi,

Why I got the following error when using $sess->delete() to remove all the
session variables.

Warning: Cannot add header information - headers already sent by (output
started at
/usr/local/apache/htdocs/tfq/test/login.php:12) in session.inc on line 158

login.php:

<?php

page_open(array("sess" => "TFQ_Session",
                "auth" => "TFQ_Auth",
                "perm" => "TFQ_Perm"));
?>
<html>
This is a protected page.
<p>
<a href="protect1.php">protect1</a>
</html>
<?
$sess->delete();
page_close();
?>

-Ken

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>