Re: [phplib] ending sessions - session.inc error From: Philip Strnad (philip <email protected>)
Date: 08/24/00

Josh, put the require() statement at the end and you shouldn't get that
warning. One of the methods you're calling is trying to set/delete a
cookie, and in PHP3 you can't send any HTML to the browser before
sending a cookie.

Philip

Josh Udall wrote:
>
> These are some general novice questions. Thanks for any help.
>
> I'd like to end everything about a session. I have a logout page much like the
> demo one. These are the last 3 lines of my code.
>
> require ("footer.html");
> $auth->logout();
> $sess->delete();
> ?
>
> Warning: Oops, php3_SetCookie called after header has been sent in
> session.inc on line 157.
>
> Before I modified anything in session.inc, I thought I'd ask if there something
> I'm missing? I'm linking to the logout page using: $sess->purl("logout.php3");
>
> My ISP has PHP 3.0.7 installed. (apache w/ mod_php)
>
> Josh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

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