Is it Possible? Win Login?
I am building up a intranet development web server at work. Each person has a folder label by their Windows Username. Is it possible to get an ASP.NET (Could be PHP) page to get there Windows Login Username. I have a feeling that the security settings in IIS may stop me but i'm going to ask anyway?
Re: Is it Possible? Win Login?
Code:
string username = HttpContext.Current.User.Identity.Name;
Re: Is it Possible? Win Login?
Nope, that doesn't send back anything. Just a NULL string....
Re: Is it Possible? Win Login?
I believe you have to disable 'Allow Anonymous Access' on the server.
Re: Is it Possible? Win Login?
We've removed anonymous access, and that's what's used to get the windows logon id.