Link to home
Start Free TrialLog in
Avatar of redl1ne
redl1ne

asked on

How can I get a users SID?

I want to extract a users SID via asp, much like

Response.Write(Request.ServerVariables("LOGON_USER"))

Can this be done?
Avatar of jitganguly
jitganguly

use sessionid
Response.write Session.Sessionid

The SessionID property returns the session identifier, a unique identifier that is generated by the server when the session is created. The session ID is returned as a LONG data type.

Avatar of redl1ne

ASKER

I don't need the sessionid, I need the domain accounts SID
Avatar of Gary
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

To be deleted and points refunded

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123
EE Cleanup Volunteer
Avatar of redl1ne

ASKER

Please do. For future reference, I was able to use the user_ssid() function in SQL Server to do what I needed :)
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial