Login to redirect to https:// page
From: Andrew Downum (andrewd_at_A7microsoft.D0Tcom)
Date: 07/18/03
- Next message: Michael Giagnocavo [MVP]: "Re: Forms authentication: Apps sharing the 'loginURL' page"
- Previous message: Shawn Farkas [MS]: "Re: CAS, Hosting in Internet Explorer"
- In reply to: RandyS: "Login to redirect to https:// page"
- Next in thread: RandyS: "Re: Login to redirect to https:// page"
- Reply: RandyS: "Re: Login to redirect to https:// page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 17 Jul 2003 15:22:54 -0700
You can check to make sure that the connection is secure
by testing Request.IsSecureConnection and then redirect if
needed.
in C#
if(!Request.IsSecureConnection)
{Response.Redirect(Request.RawUrl.Replace
("http://", "https://"));}
~ Andrew
>-----Original Message-----
>I want users to login the very first thing they do with
SSL . But that
>force them to type
>https://mywebsite.com or is there a way to redirect
http://mywebsite.com to
>https://mywebsite.com/login.aspx
>
>
>Thanks in advance
>
>Randy
>
>
>
>.
>
- Next message: Michael Giagnocavo [MVP]: "Re: Forms authentication: Apps sharing the 'loginURL' page"
- Previous message: Shawn Farkas [MS]: "Re: CAS, Hosting in Internet Explorer"
- In reply to: RandyS: "Login to redirect to https:// page"
- Next in thread: RandyS: "Re: Login to redirect to https:// page"
- Reply: RandyS: "Re: Login to redirect to https:// page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|