Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Session vs. RoleProvider

Reply
Thread Tools

Session vs. RoleProvider

 
 
Arthur Dent
Guest
Posts: n/a
 
      05-15-2007
Please help... i am stumped...

I have an app, written in VB.NET fwiw. I have a custom RoleProvider class,
cuz i finally got tired enough of hacking with application variables, to
learn the "correct" way to do roles. ....

Now, the problem, is that my RoleProvider, and my FormsAuthentication
Session do not stay together. That is to say, i frequently see cases where
the session will expire, but the RoleProvider does not. Now, they both have
their expiration timeouts set to the same values in the web.config file.

So what i wind up with is being able to access the "locked down" areas of my
site (because my RoleProvider is still providing the correct roles) even
though my forms authentication has expired. How can i force
FormsAuthentication and a custom RoleProvider to stay in lock-step???
This is a major problem, and comprises a pretty significant security hole.
Even though FA has expired, and it SHOULD send me back to my login page, it
doesn't because the RoleProvider is still saying i have "Admin" rights (or
whatever rights, for the 'secured' section).

I hope someone can help me with this; Thanks in advance,
- Arthur Dent.

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-23-2007
On May 15, 6:07 pm, "Arthur Dent" <hitchhikersguideto-n...@yahoo.com>
wrote:
> Please help... i am stumped...
>
> I have an app, written in VB.NET fwiw. I have a custom RoleProvider class,
> cuz i finally got tired enough of hacking with application variables, to
> learn the "correct" way to do roles. ....
>
> Now, the problem, is that my RoleProvider, and my FormsAuthentication
> Session do not stay together. That is to say, i frequently see cases where
> the session will expire, but the RoleProvider does not. Now, they both have
> their expiration timeouts set to the same values in the web.config file.
>
> So what i wind up with is being able to access the "locked down" areas of my
> site (because my RoleProvider is still providing the correct roles) even
> though my forms authentication has expired. How can i force
> FormsAuthentication and a custom RoleProvider to stay in lock-step???
> This is a major problem, and comprises a pretty significant security hole.
> Even though FA has expired, and it SHOULD send me back to my login page, it
> doesn't because the RoleProvider is still saying i have "Admin" rights (or
> whatever rights, for the 'secured' section).
>
> I hope someone can help me with this; Thanks in advance,
> - Arthur Dent.


Hi Arthur,

1. can you post here the code of your custom role provider?
2. what timeout value you have set in the authentication tag of the
web.config file?

BR,

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session vs. RoleProvider Arthur Dent ASP .Net 1 05-23-2007 09:56 PM
Getting RolePrincipal to use RoleProvider.IsInRole rather than RoleProvider.GetRolesForUser Keith Patrick ASP .Net Security 1 08-20-2006 09:23 AM
connectionStringName for RoleProvider Chris ASP .Net 0 03-06-2006 12:40 PM
Debugging Custom MembershipProvider/RoleProvider Classes Mark Olbert ASP .Net 0 01-10-2006 04:42 PM
MembershipProvider/RoleProvider Problems Mark Olbert ASP .Net 1 01-10-2006 12:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57