Re: Switching Between HTTP and HTTPS

Discussion in 'ASP .Net' started by Jerry III, Oct 15, 2003.

  1. Jerry III

    Jerry III Guest

    HttpRequest.IsSecureConnection doesn't work for you?

    Jerry

    "Kenneth Keeley" <> wrote in message
    news:...
    > 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
    >
    >
    >
     
    Jerry III, Oct 15, 2003
    #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. Hemant

    switching between https and http

    Hemant, Sep 16, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    288
    Hemant
    Sep 16, 2009
  2. Tony Wright

    Switching between http and https popping up a login box

    Tony Wright, May 28, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    117
    Tony Wright
    May 28, 2004
  3. CS

    Switching between http and https

    CS, Apr 29, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    154
    Jason Brown [MSFT]
    Apr 29, 2005
  4. Mike Tallman
    Replies:
    0
    Views:
    116
    Mike Tallman
    Nov 22, 2005
  5. Kenneth Keeley

    Switching Between HTTP and HTTPS

    Kenneth Keeley, Oct 14, 2003, in forum: ASP General
    Replies:
    1
    Views:
    141
    Ray at
    Oct 14, 2003
Loading...

Share This Page