PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #3135

Bug in example1 concerning the logout

Details

Submitted2005-01-08 10:03 UTC
Fromflatter at interdv dot de
Assignedlsmith
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-01-08 10:03 UTC] flatter at interdv dot de

Description:
------------
[original code]
function onLogout() {
print 'You have been logged out';
exit();
}

[should be]
function postLogout() {
print 'You have been logged out';
exit();
}

[reason]
onLogout is to be executed before e.g. destroying the session.
Because of exit(), you'll see just the text, but the session will still exist.
This minor bug could exist in some other examples too.

[2005-01-09 12:42 UTC] smith at backendmedia dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.