troubleshooting Question

Windows logged in user's SessionId is changed when the machine comes out of hibernate

Avatar of sathish_raos
sathish_raos asked on
8 Comments1 Solution898 ViewsLast Modified:
I have a windows service written in c# which monitors the session of all the logged in windows users, I get the correct session id in the windows service for the logged in users when they lock / unlock the machine.

I have noticed sometimes that when the machine resumes from hibernate and when the user unlocks the machine, the session id for that user is not the actual session id that was allocated to the user instead it is some weird long number, it ranges from 28 to 6422639 or any other big number. I noticed that this does not happen consistently. I checked the session id for the applications running for that user session in task manager and it shows the correct session id there. Has anyone seen this problem? I have seen this problem in Windows XP, Vista and 7. I have not tried in Windows 2003 or 2008 hence I don't know how it works there.

If anyone has seen this issue can you tell me how have you fixed it or work around for it?

Thank you,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros