FormsAuthentication

Discussion in 'ASP .Net' started by Baohua Li, May 7, 2004.

  1. Baohua Li

    Baohua Li Guest

    In my login.aspx, I tried both FormsAuthentication.RedirectFromLoginPage and
    FormsAuthentication.GetRedirectUrl to redirect to the original page and both
    didn't work. It always went to Default.aspx. Any idea?

    TIA
    Baohua Li
     
    Baohua Li, May 7, 2004
    #1
    1. Advertising

  2. You should use SetAuthCookie and then do a regular Response.Redirect to
    wherever you'd like.
    Here's more information:
    http://www.aspalliance.com/aspxtreme/sys/Web/Security/FormsAuthenticationClassSetAuthCookie.aspx

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net


    "Baohua Li" <> wrote in message
    news:eARXc$...
    > In my login.aspx, I tried both FormsAuthentication.RedirectFromLoginPage

    and
    > FormsAuthentication.GetRedirectUrl to redirect to the original page and

    both
    > didn't work. It always went to Default.aspx. Any idea?
    >
    > TIA
    > Baohua Li
    >
    >
     
    Steve C. Orr [MVP, MCSD], May 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. fadi
    Replies:
    1
    Views:
    506
  2. TaeHo Yoo
    Replies:
    1
    Views:
    522
    Teemu Keiski
    Jul 9, 2003
  3. Jeff Johnson
    Replies:
    6
    Views:
    3,757
    tharadk
    Jul 24, 2009
  4. Tommy
    Replies:
    1
    Views:
    2,069
    S. Justin Gengo
    Aug 7, 2003
  5. Lauchlan M
    Replies:
    2
    Views:
    495
    John Saunders
    Aug 17, 2003
Loading...

Share This Page