Re: Unique identify a user-session

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


Date: Thu, 07 Oct 2004 03:17:13 -0700

Hello Mike,

loggin the machine-name is not a solution for me because a user can
connect via terminalserver multiple times at the same time from one
machine. I need a way to identify a login-session unqiue.

Other suggestions?

Thanks

Stefan Westner

Mike Brannigan [MSFT] wrote:

> "Stefan Westner" <s@westner.de> wrote in message
> news:OgeUP91qEHA.3868@TK2MSFTNGP15.phx.gbl...
> > 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
> >
>
> If you are writing to some log file the logon and logout time then
> why not also log the machine the user is using to the file, so you
> can then collate all the information for whatever purpose you desire
> later.