DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009

    How do i authenticate my page for specific user


    I am new to .NET development. In ASP i have authenticate the page in database.so every time i check whether this page is applicable for logged user or not. For .NET how do i achieve this?

    What is windows authentication?
    what is form authentication? what is the difference?


  2. #2
    Join Date
    Aug 2009


    Most Web sites need to selectively restrict access to certain areas within a web site. Obviously certain areas/pages will allow the public to come in and browse, however areas that contain more sensitive information such as Ordering Information, Staff Names, etc. need to allow access only to authenticated users. (Additionally, you may have personalized areas, akin to site's like My Yahoo!, where you need to the visitor to be authenticated so that you can generate the customized content specifically for them.)

    One of the new features of ASP.NET is Forms Authentication. Like in classic ASP, where custom database authentication occurred through the user entering his or her login credentials via an HTML form, ASP.NET Forms Authentication works similarly. However, using this neat feature, many of the mundane tasks and code that you were required to write in classic ASP are handled for you automagically.

    Forms Authentication in ASP.NET is handled by a special FormsAuthentication class. This class contains a number of static (or Shared) methods that allow you to identify users via a login form. You can easily configure your ASP.NET application to use Forms Authentication by simply specifying a location (URL) for your login form - ASP.NET does most of the work from there! When an unauthenticated user visits a restricted page on your Web site they will be automatically directed to the specified login form. Once they successfully log on, you can optionally issue an authentication cookie to prevent authenticated users from having to log in time and time again.

Similar Threads

  1. HELP!!! redirect my page....
    By dare2design in forum Web
    Replies: 1
    Last Post: 01-09-2006, 12:49 PM
  2. Replies: 2
    Last Post: 04-21-2003, 07:12 AM
  3. Help with User Permissions - Oracle
    By Karey in forum Database
    Replies: 1
    Last Post: 02-25-2002, 12:54 PM
  4. Replies: 1
    Last Post: 07-19-2001, 03:06 PM
  5. Replies: 2
    Last Post: 12-01-2000, 11:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.