[phpldapadmin] [ phpldapadmin-Bugs-3426575 ] clicking 'logout' does not unset _SESSION['ACTIVITY']

SourceForge.net <[email protected]> Thu, 20 Oct 2011 17:15:38 -0700
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #3426575, was opened at 2011-10-20 17:14
Message generated for change (Settings changed) made by gholbert
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3426575&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.2.x
Status: Open
Resolution: None
>Priority: 3
Private: No
Submitted By: George Holbert (gholbert)
Assigned to: Nobody/Anonymous (nobody)
Summary: clicking 'logout' does not unset _SESSION['ACTIVITY']

Initial Comment:
In 1.2.1.1, clicking logout seems to miss unsetting  _SESSION['ACTIVITY'].  This means that, after clicking logout, you may be immediately logged out on your next login (...if you wait for the session expiration timeout to elapse).

Steps to reproduce:
1. To ease reproduction, set login timeout to something low in config/config.php:
$servers->setValue('login','timeout',1);
2. Login to phpLDAPadmin.
3. Click logout.
4. (Wait for login timeout to elapse).
5. Click login and log back in.
6. You will immediately be logged out, and the session inactivity message is displayed.

Plausible fix:  add as line 15 in htdocs/logout.php:
unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]);


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3426575&group_id=61828

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/