Solved

web.config forms authentication

Posted on 2011-03-18
1
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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