Solved

web.config forms authentication

Posted on 2011-03-18
1
311 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Authentication of Web Services 3 53
Runtime Error 2 28
Error when loading the database 16 57
WCF Service Application cannot connect from TCP terminal 1 14
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

11 Experts available now in Live!

Get 1:1 Help Now