[Typo3-dev] logout doesn't kill fe session?
Martin T. Kutschker
Martin.no5pam.Kutschker at blackbox.n0spam.net
Wed May 12 17:05:29 CEST 2004
Wengrzik, Andreas wrote:
> Got the same problem with cwt_community extension here´s the part doing the check:
>
> function doGetOnlineUids()
> {
> // Fetch uids
> $temp = array();
> $uids_online = $this -> doDatabaseQuery("SELECT fe_sessions.ses_userid FROM fe_users, fe_sessions WHERE fe_users.uid = fe_sessions.ses_userid AND (fe_users.username LIKE '" . $letter . "%' OR fe_users.username LIKE '" . strtoupper($letter) . "%')");
> for ($i = 0; $i < sizeof($uids_online);$i++) {
> $temp[] = $uids_online[$i]['ses_userid'];
> }
> // return
> return $temp;
> }
>
>
> Anyone can please set up this function that i get the right information??
Try Daniels idea and add a "AND feuser.is_oline" to the query.
Masi
More information about the TYPO3-dev
mailing list