Authentication
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Authentication

  1. #1
    Join Date
    Jun 2009
    Posts
    35

    Authentication

    There are diff ways to allow the user to login. Windows Authentication, Forms Authentication.

    I want to ask that in depends on which situation,dat which method to use??

    When I create a login form. I always login using
    Code:
     SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
    WEB.CONFIG
    Code:
    <configuration>
    	<appSettings/>
      <connectionStrings>
        <add name="ConnectionString" connectionString="Data Source=(local);Initial catalog=sonia;User ID=sonia;Password=sonia;" providerName="System.Data.SqlClient"/>
      </connectionStrings>
      <system.web>
    Above is which type of method???

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Authentication

    Authentication has to do with a user logging into a website to access restricted functionality; such as administration module or what ever - whereas the code you're showing is your website/application making a connection/logging into the database.

    It is two different things, and I think you're mixing up your concepts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center