Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Re: Switching Between HTTP and HTTPS (http://www.velocityreviews.com/forums/t64308-re-switching-between-http-and-https.html)

Jerry III 10-15-2003 07:33 AM

Re: Switching Between HTTP and HTTPS
 
HttpRequest.IsSecureConnection doesn't work for you?

Jerry

"Kenneth Keeley" <kenkeeley@hotmail.com> wrote in message
news:ej3zBXgkDHA.3732@tk2msftngp13.phx.gbl...
> Hi
> I wish to have a web site that has most of the pages as normal HTTP

pages
> but has some areas that use HTTPS. I want to have it that if a user

selects
> a link to a HTTPS page that they go there an there Session Information is
> kept. I also wish to have the pages switch automatically to HTTPS if a
> visitor types the URL without the HTTPS. So my questions are:
> 1) How to redirect to a Secure Page without losing Session Info?
> 2) How to test if page is accessed by HTTPS, and if not switch to

HTTPS
> quickly?
>
> I think something like this code is what I want but how do I do it.
>
> <%
> if not "HTTPS" then
> response.redirect(https://mysite.com/securepage.asp)
> end if
> %>
>
> Thanks for the help.
> Kenneth Keeley
>
>
>





All times are GMT. The time now is 11:34 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.