Possible to get Windows Login ID in a simple ASP web page?

Homerboy

Lifer
Mar 1, 2000
30,859
4,976
126
Please excuse my ignorance, I'm hardly a web developer but have a small task to complete and I'm having issues doing so.

Basically, I need to get the windows network login from a simple ASP page so I can then display items based on their login (sort of making it a "personalized page" based on their login ID/credentials)

I assume getting their login is possible?
Let's say I have super simple page like below -- how do I get their login to display?


Code:
<%
   strWrld="Hello World"
%>

<HTML>
<TITLE>ASP Test Page</TITLE>
     <STRONG><%=strWrld%></STRONG>
</HTML>

I know this can be done in VB.net, VBA... pretty much anything else. I just have very little clue when it comes to ASP

Thanks in advance.
 
Last edited:

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,326
4,000
75
It sounds like you want a single sign-on. Single sign-ons are usually a pain, even if you're not trying to get the Windows login ID.

I'm not sure if that particular kind of single sign-on is possible. If it is, it's probably only possible with Internet Explorer. Maybe something at the link above will help?

Edit: This looks more helpful:

https://support.microsoft.com/en-us/kb/837104
 
Last edited: