Item14480: VISITORS & NRGUESTS returning no results
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release:
I recently noticed in site updated to latest Foswiki (2.1.4) that the
%VISITORS{}%
macro is not returning any results and
%NRGUESTS%
always returns "0", even though I confirmed that there were both authenticated users and guests on the site (by monitoring
events.log
). The LASTVISITORS and NEWUSERS do seem to be working as expected.
--
LynnwoodBrown - 14 Sep 2017
That's a side effect of changing the session file format to Storable from the default Data::Dumper format. It was changed by
Item13563 in order to support unicode WikiNames.
The solution is to use the
CPAN:CGI::Session ->find()
call to search the session store rather that reading the files directly.
--
GeorgeClark - 15 Sep 2017
Note that counting of guests and visitors will become unreliable if Guest Sessions is disabled. For public facing sites, that's a good thing to use. It prevents the search bots from flooding the session store with useless sessions.
--
GeorgeClark - 15 Sep 2017