flynny
asked on
web.config forms authentication
Hi all,
I have the following in my web.config;
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="login/login.aspx " />
</authentication>
<authorization>
<deny users="?" />
</authorization>
this is working great. However, when a user logs in they are redirected to a different home page dependent upon their role in the db.
so for example admin is redirected to admin/default.aspx, a client client/default.aspx, etc..
Now after a user logs in I want to do the following;
either redirect to the page they were trying to access, or their relevant home page? is this possible using this authentication?
Thanks,
Matt.
I have the following in my web.config;
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="login/login.aspx
</authentication>
<authorization>
<deny users="?" />
</authorization>
this is working great. However, when a user logs in they are redirected to a different home page dependent upon their role in the db.
so for example admin is redirected to admin/default.aspx, a client client/default.aspx, etc..
Now after a user logs in I want to do the following;
either redirect to the page they were trying to access, or their relevant home page? is this possible using this authentication?
Thanks,
Matt.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.