[ticket/11731] Move memberlist.php session queries

PHPBB3-11731
[ticket/11731] Move functions.php session queries

PHPBB3-11731