Forms Authentication - On Timeout/Logout - Redirect to Custom Page

Last post 09-13-2008 12:07 PM by mohanbrij. 1 replies.

Sort Posts:

  • Forms Authentication - On Timeout/Logout - Redirect to Custom Page

    09-13-2008, 6:42 AM
    • Member
      15 point Member
    • zumbro
    • Member since 07-28-2008, 10:23 AM
    • Posts 51

    In Forms authentication, on session timeout instead of going to login.aspx is it possible to redirect to a custom page based on the role?

    Similarly on logout,redirecting to a custom page?

    For Eg: For studentRole - redirect to StudentTimedOut.aspx/StudentLoggedout.aspx

               For TeacherRole  -  redirect to TeacherTimedOut.aspx/TeacherLoggedOut.aspx

     Please help ! Crying

     

     

  • Re: Forms Authentication - On Timeout/Logout - Redirect to Custom Page

    09-13-2008, 12:07 PM
    • Participant
      1,582 point Participant
    • mohanbrij
    • Member since 08-07-2008, 4:40 AM
    • Bangalore, India
    • Posts 258

    I think you have to persist the Logged in user type as at this instance you don't have the Session, so you can keep this information in cache or in some static variable, so while checking the session == null (means user session is expired), you can put one more condition, like userType=="Student"

     

    Please remember to click “Mark as Answer” on the post that helps you

    Best Regards
    Brij Mohan
    http://www.dotnetglobe.com
Page 1 of 1 (2 items)