J
Jonathan Wood
My site requires all users to log on. Depending on the user's role, they
will have access to a certain set of pages.
I implemented this by redirecting the user to the appropriate home page in
the handler for the LoggedIn event of the Login control.
The problem is that users don't always go through the Login control. For
example, if I check the Remember Me box and then disconnect and then
reconnect, I go straight to default.aspx in the root folder withough having
to log in again. And so my code doesn't have a chance to redirect the user
based on role in this case.
I'm thinking the answer would be to modify the default page depending on the
current role, but I'm not sure how to do that. I'm also curious if anyone
has any better ideas.
Thanks.
will have access to a certain set of pages.
I implemented this by redirecting the user to the appropriate home page in
the handler for the LoggedIn event of the Login control.
The problem is that users don't always go through the Login control. For
example, if I check the Remember Me box and then disconnect and then
reconnect, I go straight to default.aspx in the root folder withough having
to log in again. And so my code doesn't have a chance to redirect the user
based on role in this case.
I'm thinking the answer would be to modify the default page depending on the
current role, but I'm not sure how to do that. I'm also curious if anyone
has any better ideas.
Thanks.