og What is the preferred way to get the currently logged in user inside my code? a) $userid = $INPUT->server->str('REMOTE_USER'); b) if (isset($INFO['user'])) $userid = $INFO['user'];
og It seems that $INFO['user'] is empty after a pagesave. Maybe it's a bug, maybe expected behaviour. So the best solution is to use the REMOTE_USER (which comes from the webserver).
turnermm $userid = $INPUT->server->str('REMOTE_USER'); This is set by Dokuwiki and overrides the web serrver's setting: https://www.dokuwiki.org/devel:environment?s[]=remote_user#server_remote_user