Re: forms based authentication

From: Steve C. Orr, MCSD (Steve@Orr.net)
Date: 04/18/03

  • Next message: Luc Kumps: "Re: forms based authentication"
    From: "Steve C. Orr, MCSD" <Steve@Orr.net>
    Date: Fri, 18 Apr 2003 00:36:19 -0700
    
    

    RedirectFromLoginPage automatically forwards the user to whatever URL they
    originally typed in once they've been authenticated.
    But you don't need to use that if you don't want.
    You can use SetAuthCookie and then do a regular Response.Redirect to
    wherever you'd like. You can examine the URL and querystring to find out
    what URL the person originally typed in.

    -- 
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net
    "buran" <buran@buran.com> wrote in message
    news:Owsx6rXBDHA.1016@TK2MSFTNGP12.phx.gbl...
    > Hi there,
    > I am using forms based authentication and everything works fine except
    > something I cannot resolve. If I call a page in my application without
    being
    > logged in, the application sends me to the login page, that's what it
    should
    > do. After logging in, I can view the page. But, if I call the login page
    > directly, and enter correct credentials, it will look for default.aspx
    page
    > which is not available. How can I avoid that? Thanks in advance.
    >
    > Private Sub btnValidate_Click(ByVal sender As System.Object, ByVal e As
    > System.EventArgs) Handles btnValidate.Click
    >
    >         If ValidateUser(txtUserName.Text, txtPassword.Text) Then
    >
    >             FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,
    > False)
    >
    >         End If
    >
    >     End Sub
    >
    >
    

  • Next message: Luc Kumps: "Re: forms based authentication"

    Relevant Pages

    • [Full-Disclosure] Advisory: Dark Age of Camelot - Weak encryption of network traffic exposed persona
      ... Weak encryption in game client exposed customer billing and authentication ... encryption for billing information. ... The login binary has undergone several updates since then. ...
      (Full-Disclosure)
    • Re: [PHP] Is this the best way?
      ... Why is Jason schreefing again? ... maybe I should edit my authentication function... ... attempting to login. ... really be either attempting an authentication *or* outputting some ...
      (php.general)
    • Authentication Sharing Across Apps
      ... For my part "B" question that I had (Login App was not returning ... authentication to calling app), I found the solution. ... Basically, in both the Login App and Calling App Web.Config, I did ... authenticated connection with SQL server. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: [PHP] Is this the best way?
      ... Jason Pruim schreef: ... I am attempting to add a little error checking for a very simple login system. ... So maybe I should edit my authentication function... ... really be either attempting an authentication *or* outputting some message ...
      (php.general)
    • forms authentication question
      ... I am using Forms authentication for the first time, ... private void Page_Load(object sender, System.EventArgs e) ... Default_new_user.aspx is used to login users that don't have a cookie on ...
      (microsoft.public.dotnet.framework.aspnet)