[FIX]Fixed the issue of session storage directory created with wrong username when someone restart the server using sudo.
[FIX]Refixed the issue of oe_sessions_effectiveusername storage in temp, used geteuid which returns effective user id.
[FIX] picking of username for session data directory in case of setuid

Try using geteuid() before getpass.getuser() so a system where
environment user and effective user (e.g. sudo, start-stop-daemon)
creates session-storage directory with a username matching the access
rights.