Re: RedirectFromLoginPage: Returns to login page.

From: Tim Murphy (news_at_msolutions.com.au)
Date: 09/26/05

  • Next message: Jéjé: "Application level roles + Item level roles... how to do it?"
    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>
    >
    >
    >


  • Next message: Jéjé: "Application level roles + Item level roles... how to do it?"

    Relevant Pages

    • Re: RedirectFromLoginPage: Returns to login page.
      ... and if IE sends the cookie on subsequent requests. ... > Dim cPassword As String ... > Dim bPersistent As Boolean ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • RedirectFromLoginPage: Returns to login page.
      ... login.aspx gets redisplayed instead of returning to the calling page. ... Dim cPassword As String ... Dim bPersistent As Boolean ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Clipboard Problem
      ... Tim Williams ... message is in html format not rich text or plain text. ... Dim MyDataObj As DataObject ... Public Function GetOffClipboard() As Variant ...
      (microsoft.public.excel.programming)
    • Re: ADO Recordset.Filter in Excel 2002
      ... Tim ... Dim RS As ADODB.Recordset ... Dim oRS As ADODB.Recordset ... 'Populate the Recordset object with a SQL query ...
      (microsoft.public.excel.programming)
    • Re: Get Excel Value
      ... > Hi Tim ... > You need to create an instance of Excel, open the required workbook file, ... > Dim rs As DAO.Recordset ... > Graham Mandeno ...
      (microsoft.public.access.modulesdaovba)