Ask a Question related to ASP.NET General, Design and Development.
-
Jeff Cope #1
Question about Security
I'm going to be writing an asp.net application that certain users have
access to specific pages and others don't. User authorization will be
handled within the application via a login page. My question is, what is a
good approach to use to prevent certain users from accessing a page while
allowing others access?
As it stands, I'm planning to use a session variable to first make sure the
user has been logged into the system and second has access to the requested
page. If either case is false, the user would be redirected to the login
page.
Is there a better way to handle this in asp.net?
Jeff Cope Guest
-
CF security question
I was wondering, is it possible, and if so a good idea, to put your secured admin pages behind CF security and .htaccess? In other words put your... -
A Question regarding SWF security when using FCS
I know that there is probably no way to completely secure your Flash development work if you want to have end users see it...I was wondering (not... -
Security Question
Hey all... I am after some help.. I have a database where i want only employees within a particular organisation to read details about other... -
Another question for AIX Security
When I did a security review on Solaris two years ago, one of the items I checked was to verify permission for both files /var/adm/utmp and... -
Security Question ???
We have a small peer to peer network with nine XP-Pro Computers networked and connected to the Internet through a DSl router/modem. One computer is... -
Philipp Sumi #2
Re: Question about Security
I would suggest to derive all your pages from a custom "BasePage" (that
itself is dervied from the standard Page class. Within this base class,
you could expose logic to test the user's security context that is being
tested in your web forms, eg
if (!HasPermission(CustomPermission.EditContent))
{
//show error or whatever
}
The granularity may be chosen depending on your needs:
protected bool IsAdmin();
protected bool HasPermission(CustomPermission permission);
protected bool IsInRole (CustomRole role);
HTH
Philipp
Jeff Cope wrote:> I'm going to be writing an asp.net application that certain users have
> access to specific pages and others don't. User authorization will be
> handled within the application via a login page. My question is, what is a
> good approach to use to prevent certain users from accessing a page while
> allowing others access?
>
> As it stands, I'm planning to use a session variable to first make sure the
> user has been logged into the system and second has access to the requested
> page. If either case is false, the user would be redirected to the login
> page.
>
> Is there a better way to handle this in asp.net?
>
>
>Philipp Sumi Guest
-



Reply With Quote

