Solved

web.config forms authentication

Posted on 2011-03-18
1
308 Views
Last Modified: 2012-08-13
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.
0
Comment
Question by:flynny
1 Comment
 
LVL 33

Accepted Solution

by:
Todd Gerbert earned 500 total points
ID: 35167764
I assume you're using the login control on login/login.aspx - you can just handle the LoggedIn event of that control and use Response.Redirect() to send the user anywhere you want.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now