What did you use in ASP to set session("userid")? I ask as this is just a session wide variable and unless you set it, it wouldn't exist and certainly wouldn't return the name of the current user.
I was just wondering how you actually populated that variable, as it may be that you could do it the same way (unless of course you can utilise the solution from Mike555).
It shouldn't mess up your other applications (if they are running on the same web server) as you can define the security for each application.
You will have to go into IIS and select the properties of the ASP.NET application, select the Directory Security and set up Windows Authentication there.
ca8msm can correct me (I'm sure) If I'm wrong, but I think...
If you have anonymous access enabled, only anonymous users (whom the application cannot outright identify) would show in User.Identity.Name. Having anonymous access enabled would not automatically make user's unidentifiable via User.Identity.Name. IIS Virtual Directory accesses may be configured on a Virtual Directory-by-Virtual Directory basis and therefore modifying the settings of one Virtual Directory will not screw-up other Virtual directories.
-- Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.
If you have anonymous access enabled, only anonymous users (whom the application cannot outright identify) would NOT show in User.Identity.Name. Having anonymous access enabled would not automatically make user's unidentifiable via User.Identity.Name. IIS Virtual Directory accesses may be configured on a Virtual Directory-by-Virtual Directory basis and therefore modifying the settings of one Virtual Directory will not screw-up other Virtual directories.
-- Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.