* Returns a list of authenticated users and data about their session.
*
* @return array For authenticated users, the sessionid as a key and the
- * information returned from Horde_Auth::readSessionData() as
- * values.
+ * information returned from Horde_Auth::readSessionData()
+ * as values.
* @throws Horde_Exception
*/
public function getSessionsInfo()
* '-l' List the username of active authenticated users
* '-ll' List the username and login time of active authenticated users
*
- * $Horde: framework/SessionHandler/scripts/horde-active-sessions.php,v 1.7 2008/09/22 03:50:58 slusarz Exp $
- *
* @package Horde_SessionHandler
*/
}
$sessions = $GLOBALS['horde_sessionhandler']->getSessionsInfo();
-if (is_a($sessions, 'PEAR_Error')) {
- throw new Horde_Exception($sessions);
-}
if (($argc < 2) || (($argv[1] != '-l') && ($argv[1] != '-ll'))) {
$cli->writeln(count($sessions));