Link to home
Start Free TrialLog in
Avatar of flynny
flynnyFlag for United Kingdom of Great Britain and Northern Ireland

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.
ASKER CERTIFIED SOLUTION
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial