Re: <forms loginUrl="https:// pb

Discussion in 'ASP .Net' started by Alexey Smirnov, Jun 25, 2009.

  1. On Jun 25, 2:11 pm, "ADNT" <>
    wrote:
    > Hello,
    >
    > I have a problem with Forms authentication and the default login page set in
    > web.config
    >
    > I want to use an https secured page for it so I put in web.config
    > authentication section
    > <form loginUrl="https://www.mysite.com/login/login.aspx..../>
    >
    > my web site supports ssl with a certficate and I am able to access directly
    > from any browser the pagehttps://www.mysite.com/login/login.aspx
    >
    > but when it is triggered by asp.net, when a non authenticated session try to
    > access a path which need authenticated users, it always generate the non
    > secured urlhttp://www.mysite.com/login/login.aspx
    >
    > why ?
    > I should get the https version as written in web.config ?
    >
    > Any help welcome.
    >
    > CS


    Add requireSSL="true" into forms configuration

    <forms name=".ASPXAUTH"
    loginUrl="login.aspx"
    protection="All"
    timeout="20"
    requireSSL="true">

    http://support.microsoft.com/kb/813829

    Hope this helps
    Alexey Smirnov, Jun 25, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hermit Dave
    Replies:
    9
    Views:
    546
    Hermit Dave
    Jan 13, 2004
  2. Hermit Dave
    Replies:
    0
    Views:
    456
    Hermit Dave
    Jan 13, 2004
  3. Murphy
    Replies:
    2
    Views:
    4,364
    hwang
    Apr 19, 2004
  4. gabe

    How to read Forms LoginURL?

    gabe, Nov 29, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    351
  5. Juan T. Llibre

    Re: <forms loginUrl="https:// pb

    Juan T. Llibre, Jun 25, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    404
    Juan T. Llibre
    Jun 25, 2009
Loading...

Share This Page