Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:08:24+00:00 2026-06-01T15:08:24+00:00

Once the user is authenticated, I fetch the User information from the Database and

  • 0

Once the user is authenticated, I fetch the User information from the Database and saves it in Session.

Now, In order to validate the user to authorize for a particular page, Enumeration is present for Roles/Pages. Finally I compares it with the Session data for indivisual page. As, directories can be nested, So, I personally feel that it is a flexible approach.

So, Is it a Good practice or I can use FormAuthentication Ticket Class as the approach use Web.Config.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:08:25+00:00Added an answer on June 1, 2026 at 3:08 pm

    Form Authentication provides you less effort to write basic security of your web pages.

    offcourse you can write your own code as you mentioned , but you have to make sure that all the pages must have authentication checks either by writing code on all the pages or by deriving your authentication checks from a single base page or helper classes.

    I myself never want to write custom code for authentication as FormAuthentication itself provides you protecting all the directory/pages inside your website.

    There are many other features e.g.

    1) You can choose which file/folder should not be secure
    2) Get loggedin user details at any secure page
    3) Default and Login url redirections 
    4) Logout feature and redirecting to default/login page automatically
    5) Role wise security , Role based page/folder access etc.
    

    explore google for this and you’ll find more advantages…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once a user starts a session (or logs in, for a registered user, to
In my application, once the user is authenticated, he receives a sort of security
I'm trying to create a log when an authenticated user creates a new session,
Once the user is authenticated, I serialized the class object and stored it in
I have a PHP application where I set $_SESSION['user']=logged once a user is authenticated.
Once a user is authenticated I have an Object userID. Where is the best
Once a user has selected a file with the open file dialog, how can
How do I make this so once the user inputs a number and presses
I want to display the posted comment once the user comments. Just to add
Let's say that I have a site where once the user selects a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.