Re: forms based authentication

From: buran (buran@buran.com)
Date: 04/18/03


From: "buran" <buran@buran.com>
Date: Fri, 18 Apr 2003 14:46:24 +0300


I have tried that but could not accomplish it. The first time it works, but
it down not subsequent times.

"Luc Kumps" <NOkumpsSPAM@pandora.be> wrote in message
news:tWNna.50868$t_2.4778@afrodite.telenet-ops.be...
> Perhaps you could use the GetRedirectUrl() method to check where
> RedirectFromLoginPage will take you, and use Response.Redirect instead of
> RedirectFromLoginPage in case it return "default.aspx"?
>
> Luc K
>
> "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
> >
> >
>
>



Relevant Pages

  • Re: OS X System freeze
    ... inception, on several different Macs with several different utilizations, and just now I had to hard restart my computer for the first time because my iBook became totally unresponsive after waking from sleep. ... I recall once the screen saver was wedged, though on one occasion I had to kill my login process, which reset the box back to the login screen. ... You probably don't have to immediately hit the Big Grey Switch when the UI appears wedged. ...
    (comp.sys.mac.system)
  • Re: Metalink Updates
    ... The phrase "You will be prompted to change this password the first time ... you login" appears on a new line in my email. ... While following forum threads via the NEXT button I was place on the ... There is no ETA on having a the problem fixed from Oracle support per a ...
    (comp.databases.oracle.server)
  • Re: Error dialog on login
    ... "Rock" wrote: ... >> I am getting a popup the first time I login after a reboot of XP Pro SP2: ...
    (microsoft.public.windowsxp.general)
  • [opensuse] CompizFusion disable
    ... How do I just disable the loading of compiz and emerald at login? ... (I remember the first time I tried compiz and beryl I had to figure out ... how to create startup scripts to get it to load at login, ...
    (SuSE)
  • Re: slow login to new windows server 2003 domain
    ... > Server 2003 domain from a client XP workstation. ... > around 10 minutes to login for the first time. ... After the first login, I ...
    (microsoft.public.windows.server.general)