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 8323741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:48:58+00:00 2026-06-08T23:48:58+00:00

I have an asp.net webforms project. In there, an Admin has the ability to

  • 0

I have an asp.net webforms project. In there, an “Admin” has the ability to get to a screen to submit a form that will create a new user (CreateUser.aspx).

If that user’s permission is changed later to be less than Admin they can’t access that screen anymore to create new users. However, if they saved the exact web request to create a new user from when they were an admin, they can replay this and create new users still.

It is not possible for a random person to submit this form though unless they guess an active session id (that is the only thing checked on each form submit).

CreateUser is one of many examples of admin functions. Is the proper solution to this to validate that the user is an admin on each of these different form submits (not sure of a clean way to do this in asp.net)? Or is it acceptable to just expire the session on logout and never reuse session id’s? Does asp.net have any other security features built-in to protect against this type of attack?

  • 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-08T23:49:00+00:00Added an answer on June 8, 2026 at 11:49 pm

    One way, is to have a base class(Which inturn inherits the class – “page”) and all your aspx pages should inherit this base class. so that whenever a aspx page loads, your base pageLoad method is called. In this method you can check the authentication and authorization.

        public class BasePage : System.Web.UI.Page
        {
    
            public BasePage()
            {
                this.Load += new EventHandler(BasePage_Load);
            }
    
         void BasePage_Load(object sender, EventArgs e)
            {
         //Check authentication/authorized
        //if authenticated/authorized leave it.. If not redirect to error page
            }
        }
    
        public partial class Forms_CreateUser : BasePage
        {
            protected void Page_Load(object sender, EventArgs e)
            {
            }
        }
    
        public partial class Forms_CreateRole : BasePage
        {
            protected void Page_Load(object sender, EventArgs e)
            {
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET 3.5 webforms project written in VB that involves a multi-table
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have a hybrid ASP.NET WebForms/MVC project. In my Master Page, I have a
I have an ASP.NET project (VS2008 on Windows 7 with either webforms, MVC1, or
I have a ASP.NET Webforms application that is being used with Motorola Tablets (Android
We have a Asp.net webforms webapplication. The solution has the following structure: MySolution\ MySolution.Main\
We have an ASP.NET 2.0 WebForms app that uses MS Ajax 1.0. It's working
We have a Asp.Net Vb.Net application with around 35 webforms.There are some remote users
I have an asp.net mvc3 project, it has some reports in aspx web pages.
I have asp.net 4 webforms website which references PortableLibrary project. In the website I

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.