Form Authentication with SSL

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

  1. #1

    Default Form Authentication with SSL

    If I use form authentication with SSL with my web application, when I access
    my login page, I will go to [url]https://www.mydomainname.com/login.aspx[/url]. After
    login, say I redirect the user to afterlogin.aspx. Will my address remain as
    [url]https://www.mydomainname.com/afterlogin.aspx?[/url]

    Can I explicitly redirect it to [url]http://www.mydomainname.com/afterlogin.aspx?[/url]
    Is this a good practice?

    This is because my ISP requires me to put every aspx file that requires SSL
    encryption in a "/secure" folder, and to access it, users have to go to
    [url]https://secure.my-ISP-domain-name.com/my-domain-name/filename.aspx[/url]. So, most
    probably, I'll put my login page in that folder, while the other files, I'll
    put in other folder since I only need SSL for login. Am I right?
    wrytat Guest

  2. Similar Questions and Discussions

    1. Form Authentication Ticket
      I've read some books and online articles on how to implement form authentication. Some taught me just to do...
    2. Form Authentication
      Hello everyone, I have found a problem with form authentication method that I can't solve. The problem is: I want to use a form authentication...
    3. authenticate win32 form client with form based authentication web services
      (Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client...
    4. Problems with form authentication
      I'm experiencing some problems with role-based forms authentication accross domain. I wanted to create an unique login page for multiple web server...
    5. Uses ASP.NET form authentication across projects?
      Basically this needs to be done so that: a) synchronize <machineKey> elements in web.config for all applications b) synchronize <authentication>...
  3. #2

    Default Re: Form Authentication with SSL

    > If I use form authentication with SSL with my web application, when I
    > access my login page, I will go to
    > [url]https://www.mydomainname.com/login.aspx[/url]. After login, say I redirect
    > the user to afterlogin.aspx. Will my address remain as
    > [url]https://www.mydomainname.com/afterlogin.aspx?[/url]
    Yeah, the RedirectFromLoginPage will keep the https protocol in the address.
    > Can I explicitly redirect it to
    > [url]http://www.mydomainname.com/afterlogin.aspx?[/url] Is this a good practice?
    You can. Instead of FormsAuthenticaytion.RedirectFromLoginPage, just call
    FormsAuthentication.SetAuthCookie and then do your own redirect. People do
    this all the time to redirect based upon the specific user.
    > This is because my ISP requires me to put every aspx file that
    > requires SSL encryption in a "/secure" folder, and to access it, users
    > have to go to
    > [url]https://secure.my-ISP-domain-name.com/my-domain-name/filename.aspx[/url].
    Hmm, ok. If they say so :)
    > So, most probably, I'll put my login page in that folder, while the
    > other files, I'll put in other folder since I only need SSL for login.
    > Am I right?
    Well, the one thing to keep in mind is that once they've logged in, the cookie
    sent back to the browser is what identifies the user. So if the browser is
    sending cookies over a non secure channel (http vs https) then if I'm an
    attacker and I'm sniffing network packats I could potentially steal the cookie
    and then use it was my own. So, if your app is important then I'd make all
    pages that require authentication go over https. For other pages they can
    go over http but only if the browser doesn't send the cookie and this can
    be requested by a web.config setting:

    <forms>
    requireSSL="true"
    </forms>

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]



    Brock Allen 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