Login button from any page

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Login button from any page

    I have a Login link on my non-secure home page which links
    to Login.aspx?ReturnUrl=/Default.aspx (which is also in a
    non-secure directory). Once I authenticate and set the
    authentication cookie in Login.aspx I return to
    Default.aspx .. but Default.aspx does not pick up that I
    am logged in.

    My understanding of why this isn't working .. once the
    authentication cookie is set the page must redirect to a
    *secure* page so that IIS/ISAPI can read the cookie and
    process it as a login. Is there no easier way to do this
    than to send the user on a redirection route through a
    secure page first?
    javawzl Guest

  2. Similar Questions and Discussions

    1. Strange problem with Forms authentication: After successfull login, login page is still displayed
      Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last...
    2. user and admin login on same login page
      Hello, I have a user login page which also doubles as my administrator login. Currently, my method of logging in doesnt seem to be working...
    3. making a login page which shud lead to a https page ?
      (Type your message here) making a login page which shud lead to a https page ? ne suggestions -------------------------------- From: sneha...
    4. session problem - login screen continually reloads after pressing the login button
      I am trying to get sessions to work on a log in screen to give certain users access to certain pages/directories. The problem is that when the...
    5. Sleep button on the login window
      Does anyone know how to add a "Sleep" button to the login window? There is already a "Restart" and "Shutdown" button, but sometimes I would like to...
  3. #2

    Default Re: Login button from any page

    Check couple of things, you may be doing these already!!!



    1. Check the cookie domain.

    If both Login.aspx and Default.aspx live in same cookie domain, cookie will
    flow between these pages automatically.



    2. Check cookie security bit.

    Your browser will not send the cookie to server while requesting
    Default.aspx page on regular HTTP channel, if the cookie security bit is
    turned on.



    "javawzl" <javawzl@hotmail.com> wrote in message
    news:01bc01c3aad1$3613f430$a101280a@phx.gbl...
    > I have a Login link on my non-secure home page which links
    > to Login.aspx?ReturnUrl=/Default.aspx (which is also in a
    > non-secure directory). Once I authenticate and set the
    > authentication cookie in Login.aspx I return to
    > Default.aspx .. but Default.aspx does not pick up that I
    > am logged in.
    >
    > My understanding of why this isn't working .. once the
    > authentication cookie is set the page must redirect to a
    > *secure* page so that IIS/ISAPI can read the cookie and
    > process it as a login. Is there no easier way to do this
    > than to send the user on a redirection route through a
    > secure page first?

    Ram Sunkara [msft] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139