Appplication_AuthenticateRequest

P

Peter Morris

Hi all

First I want to say that I don't want to implement the membership providers.
I'm writing some specific documentation, and those come into it later :)

I am using Forms authentication in a website. I want access to different
areas based on roles. When the user logs in I determine their roles as a
string[]. The problem is that to set those roles for Forms authentication I
need to create the new System.Security.Principal.GenericPrincipal in
Application_AuthenticateRequest.

The problem with this is that the Session[] is null. In the past I have
stored the role information in Application[], but if I want to move my
session state into a DB so that my site can be farmed my Application[] will
not get carried across will it?

So, what should I do?


Thanks

Pete
 
P

Peter Morris

It's as I thought, the roles are stored in a cookie on the client. Just how
safe is this against modification?

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top