recheck for allowed roles

T

Trollpower

Hello NG,

ive got authentication mode Forms. To access the root directory the
user needs to authenticate using the login form. Additionally ive got a
subfolder where the user has to authenticate again if he has not a
specific role ( which might be different from the root directory).
Everything works great so far, but as soon as the user returns from the
subfolder, there is no check for the right role. For example: The user
logs in at the rootDir with Role "A" (which is the only allowed role
here). He moves on to the subfolder and logs in as role "B". Now he
returns to the root directory ( still as role "B"), but no check for
the allowed role is made.

Does anyone know why the appropriate check isnt made here again (he
doesnt get redirected to the login page). While in the subfolder the
user has role "B" only, since i made a whole new assignment to the
FormsAuthenticationTicket using role "B" only. The siwtch back to the
root Dir is made with a Button not with the Backbutton of the Browser.

If i make a FormAuthentication.SignOut() the login-page appears, but i
dont want to use this call since it is possible that the user takes the
credentials of a user who has both roles "A" and "B", so that he dont
have to login to the subfolder. If he returns to the rootfolder that
way he has to login again, though he has a valid role for the
rootdirectory.

Any hints on how to solve the problem is appreciated.

Jens
 

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

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top