473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

manage page access rights

Hi all!

Within my web applikation I would like to centrally manage page access
rights. Users of my web application belong to certain departments and have
certain roles. The departments and roles are stored in a database. The web
application uses windows authentication and IIS integrated security.

Now I would like to limit access to pages to certain departments and/or
roles. Whats the best way to store the department/roles information and at
which point should I check them? Where can I store the information which
page should be accessible by which roles and/or departments? Currently I'm
reading out the roles and departments during Session_Sart() and store them
in session state - but session state is not available in Begin_Request(), so
I can't use it to verify access rights there.

Any help would be appreciated.
Thanks

Markus
Nov 18 '05 #1
1 1489
hmm, storing department info in a database is limiting when you are using windows authentication. Better is to have Active directory take care of the groupings and then configure web.config to handle the page access.

http://www.csharpfriends.com/quickst...eservices.aspx
http://support.microsoft.com/default...b;en-us;315736

Hope this helps,
--Michael

"Markus Stehle" <ma*******************@web.de> wrote in message news:uL**************@TK2MSFTNGP09.phx.gbl...
Hi all!

Within my web applikation I would like to centrally manage page access
rights. Users of my web application belong to certain departments and have
certain roles. The departments and roles are stored in a database. The web
application uses windows authentication and IIS integrated security.

Now I would like to limit access to pages to certain departments and/or
roles. Whats the best way to store the department/roles information and at
which point should I check them? Where can I store the information which
page should be accessible by which roles and/or departments? Currently I'm
reading out the roles and departments during Session_Sart() and store them
in session state - but session state is not available in Begin_Request(), so
I can't use it to verify access rights there.

Any help would be appreciated.


Thanks

Markus

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: guy | last post by:
I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever...
4
by: ugo_lavoie | last post by:
Hi there, i'm doing a databse right now and i want it to be secure, about 20-30 people (max) will be using it and it will be on a SQL server. My first question: I saw some web page about adding...
8
by: Quentin Huo | last post by:
Hi: I want to run cacls.exe to check the user right from an ASPX page. In ASP, I can do: Set wshobj=Server.CreateObject("WScript.Shell") resobj=wshobj.Run("cmd /c echo Y| cacls c:", 0, True)...
4
by: Corno | last post by:
Hi all, How do I find out if the current visitor of my page has enough rights to open another page on the same server? I need this to show a link to that page only when the visitor can actually...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: Alex Maghen | last post by:
Hi. I'm a little confused about the code that resides in the code-behind of a MasterPage and the code that resides in the code-behind of the actual pages that USE that MasterPage. I'm noticing,...
2
by: larry | last post by:
I am working on a DB for family data, and in this application the data spans variable amount of rows in multiple tables (one for the adults data, one for "family", one for the kids, another for...
4
by: Dariusz Tomoń | last post by:
Hello, How can I manage files from ASP.NET C# 2.0? I mean I would like to save/erase files, find files in a folder and programatically check if the file with the specific name exists in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.