Unique identify a user-session

From: Stefan Westner (s_at_westner.de)
Date: 10/06/04


Date: Tue, 05 Oct 2004 21:45:29 -0700

Hello,

we have a win 2000-domain with Win 2000 Prof.-clients.

At login and logout of a user we run a small programm which writes the
login-time and the logout time to a file. Because a user could login at
several PCs at the same time we need to identify a user-session.

Does windows assign every logged-in user something like a unique ID
which could be used?

Example:
User enter its password, login starts
Windows stores the user-session somewhere with unqiue identifier
Our login-script runs, read that identifier
The user works the whole day and stays logged in
The user logs out
Our logout-script runs, read the unique indentifier and nows which user
session has logged out

Thanks

Stefan