TYPO3 Extension: Use a simple password form to add usergroups and show pages/content only for the current session.
On logout, the sessions are removed.
composer req b13/sessionpassword and install the extension via the Extension Manager,
then you have a new plugin ready to go.
As this is a PHP project, extending TYPO3, all code is licensed as GPL v2+.