ogclient/src
Alejandro Sirgo Rica a36c4daa23 src: add user session detection implementation
Detect user login and logout for Linux and Windows.

Report an active interactive session through the /refresh response
so a new ogserver instance can update the session status.

Poll the session change in 5 second intervals in a thread. Use the
same event socket previously used by the old session detection
mechanism to notify a session change.

Use the method check_interactive_session_change in each
ogOperations.py to report the session status.
Return values:
	None: no session changes are found
	True: login
	False: logout

Windows
Verify if psutil.users() has any value.

Linux
Verify all the psutil.users() asociated to a terminal.
2024-11-26 13:02:45 +01:00
..
linux src: add user session detection implementation 2024-11-26 13:02:45 +01:00
live src: add user session detection implementation 2024-11-26 13:02:45 +01:00
utils utils: disable fcntl in ogClient for Windows 2024-11-15 10:47:05 +01:00
virtual src: add user session detection implementation 2024-11-26 13:02:45 +01:00
windows src: add user session detection implementation 2024-11-26 13:02:45 +01:00
__init__.py ogClient is AGPLv3+ 2021-05-14 00:19:28 +02:00
log.py src: replace DEVICE env variable with get_ethernet_interface() 2024-10-01 15:32:54 +02:00
ogClient.py src: add user session detection implementation 2024-11-26 13:02:45 +01:00
ogRest.py src: add user session detection implementation 2024-11-26 13:02:45 +01:00
restRequest.py src: add POST cache/fetch method 2024-08-09 11:04:56 +02:00