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

Bug #979 Bug in processLogout()
Submitted: 2004-03-09 12:43 UTC
From: alain_d99 at freesurf dot ch Assigned: lsmith
Status: Closed Package: LiveUser
PHP Version: 4.2.1 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2004-03-09 12:43 UTC] alain_d99 at freesurf dot ch
Description: ------------ Hello, LiveUser.php v1.80 The logout process doesn't work as expected. The problem comes from the LiveUser::processLogout() that doesn't take the logout value from GET or POST method into account. Line: ~1021 if (empty($handle)) { $httpvar = (strtolower($this->_options['login']['method']) == 'post') ? $_POST : $_GET; if (isset($httpvar[$this->_options['login']['username']]) && $httpvar[$this->_options['login']['username']] && isset($httpvar[$this->_options['login']['password']]) && $httpvar[$this->_options['login']['password']] ) { $logout = true; } } else if($handle && $passwd) { $logout = true; } would be: if (empty($handle)) { $httpvar = (strtolower($this->_options['login']['method']) == 'post') ? $_POST : $_GET; if (isset($httpvar[$this->_options['login']['username']]) && $httpvar[$this->_options['login']['username']] && isset($httpvar[$this->_options['login']['password']]) && $httpvar[$this->_options['login']['password']] ) { $logout = true; } else if(isset($_GET[$this->_options['logout']['trigger']]) || // ADDED, NECESSARY isset($_POST[$this->_options['logout']['trigger']])) { // ADDED $logout = true; } } else if($handle && $passwd) { $logout = true; } Now, LiveUser::processLogout() works perfectly well. Thank for your work, Alain Expected result: ---------------- The logout process must work as expected. Actual result: -------------- The logout process doesn't work as expected: never log out.

Comments

 [2004-03-09 12:56 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-03-09 13:48 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-03-09 14:23 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!