[ticket/11731] Refactor names of two closely related session functions

These functions were named very closely before, leading to confusion.

PHPBB3-11731