Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.16.14

Bug #3135 Bug in example1 concerning the logout
Submitted: 2005-01-08 10:03 UTC
From: flatter at interdv dot de Assigned: lsmith
Status: Closed Package: LiveUser
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [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.

Comments

 [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.