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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:54:21+00:00 2026-06-04T01:54:21+00:00

I currently have a Web Application which is using it’s own Permissions table which

  • 0

I currently have a Web Application which is using it’s own “Permissions” table which contains the following columns:

  • UserName – Windows UserName (Context.User.Identity.Name)
  • DivisionID – Links to a Division Table
  • RoleID – Comes from a custom Roles Table
  • RegionID – Recently added field to divide my Application into Countries (Canada, USA, International)

When the User logs into the site, they choose which Region they want to enter and I need to give them access to those Regions based on if they have any permissions set for that specific RegionID. Upon selecting a Region, the RegionID is stored in Session and will be used for this permission check and defining how data is populated on the pages (I haven’t implemented the Session variable into all of the pages just yet so that can be changed if need be)

My initial thought would be to run my Permission Check on each page sending them to one of three destinations:

  • Invalid Permission Page (false)
  • Region Select Page – No Region selected in Session (RegionID = 0)
  • The page they requested – If has a permission set for that Region

I’ve also looked into using the Application_AuthenticateRequest method within the Global.asax but I cannot use Session within this area and it seems to be hitting the Application_AuthenticateRequest much more than it should be.

With my current App, what would be the best way to authenticate each user with their corresponding Regions, based on their Permissions?

  • 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-04T01:54:23+00:00Added an answer on June 4, 2026 at 1:54 am

    I’ve really only worked with forms authentication– but I’m assuming you’ll be using windows authentication for membership and some form of custom roles authentication. I’ve never done it, but one would think it should work.

    http://msdn.microsoft.com/en-us/library/system.web.security.roleprovider.getrolesforuser

    You could create a custom provider that would take into account the Session value for Region in order to return the correct roles. I know for a web application, the default provider stores the roles as an encrypted cookie on the client. I’m thinking you can do something similar.

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

Sidebar

Related Questions

I have a Clustered Windows Hosting site which currently hosts an MVC Web Application
I have a PHP based web application which is currently only using one webserver
I'm currently working on web application using VB in ASP.NET. Right now I have
I have a web application which currently has a bunch of users and use
I have a spring web application (currently packaged as a war file) which I
I am currently working on securing a web application using spring-security 3.0. I have
I have a web application that is currently using backbone.js 0.5.3 with backbone local
Working on a small web application, I have a user table in which user
We have a web application which uses Struts 2, Spring and Hibernate. Currently a
I'm currently building a SmartGWT-based web application (using the Portlet Layout). So I have

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.