[ticket/11620] Added validate_session to provider.

PHPBB3-11620