You must Sign In to post a response.
  • Category: ASP.NET

    Control different browser login

    Hi,

    Web application requirement (asp.net & C#)

    I have an new requirement, that's when Login our application in a new IE browser (different machine), then special authentication is required.

    Ex. I'm using the application in my machine & IE browser, here no need for special password. when i run my application in another machine / new browser that time only special password has to ask.

    Regards,
    Sathish S
  • #768826
    I think you can use Windows authentication to serve your purpose
    To configure your Web application for Windows authentication, follow these steps:
    1.Create an ASP.NET Web Application named ASPNETWinAuth. By default, theWebForm1.aspx file appears.
    2.In the HTML view of WebForm1.aspx, replace the existing code with the following sample code:

    <%=User.Identity.Name%>

    3.Click Start, point to Programs, point to Administrative tools, and then click Internet Information Services.
    4.The Internet Information Services MMC appears. Expand Computer, and then expand a Web site that uses Windows authentication.
    5.Click the ASPNETWinAuth Web site application.
    6.On the Action menu, click Properties.
    7.In Properties, click the Directory Security tab.
    8.Under Anonymous access and authentication control, click Edit.
    9.In Authentication Methods, click to select Integrated Windows authentication. Click to clear all other check boxes.
    10.Click OK.
    11. In Properties, click OK. The ASPNETWinAuth Web application is now configured to accept valid user accounts.

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #768827
    Thanks for sharing this info,

  • #768851
    Hi Satish,

    Yes, I agree with Prasad windows authentication is better option in your case, using windows authentication it uses the credentials based on your entry level logins.

    Ex:
    desktop login those credentials applies to the Microsoft word, excel...

    Hope this helps you...

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


  • Sign In to post your comments