Re: RedirectFromLoginPage: Returns to login page.
From: Tim Murphy (news_at_msolutions.com.au)
Date: 09/26/05
- Previous message: Dominick Baier [DevelopMentor]: "Re: RedirectFromLoginPage: Returns to login page."
- In reply to: Tim Murphy: "RedirectFromLoginPage: Returns to login page."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 27 Sep 2005 07:21:59 +1000
One should always sleep on a problem before pulling their hair out.
The problem was the cookie setting in ZoneAlarm.
Tim
"Tim Murphy" <news@msolutions.com.au> wrote in message
news:4337f207$0$13321$61c65585@un-2park-reader-01.sydney.pipenetworks.com.au...
> I'm using the following code in my login.aspx page to validate a user. The
> FormsAuthentication.RedirectFromLoginPage(cUser,bPersistent) gets called
but
> login.aspx gets redisplayed instead of returning to the calling page. If I
> change the address line in IE to the calling page I can see the new user
has
> been logged.
>
> I'm using Windows 2000 Pro + ASP.Net 1.1.
>
> Any ideas what the problem is?
>
> Tim
>
> <script language="VB" runat="server">
>
> Sub ProcessLogin(objSender As Object, objArgs As EventArgs)
>
> Dim cUser As String
> Dim cPassword As String
> Dim bPersistent As Boolean
>
> cUser = txtUser.Text
> cPassword = txtPassword.Text
> bPersistent = chkPersistLogin.Checked
>
> ' This is were I should compare to the database.
> If True Then
> FormsAuthentication.RedirectFromLoginPage(cUser,bPersistent)
> Else
> ErrorMessage.InnerHtml = "<b>Something went wrong...</b> please re-enter
> your credentials..."
> End If
>
> End Sub
>
> </script>
>
>
>
- Previous message: Dominick Baier [DevelopMentor]: "Re: RedirectFromLoginPage: Returns to login page."
- In reply to: Tim Murphy: "RedirectFromLoginPage: Returns to login page."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|