shopping cart setup

Discussion in 'ASP.NET 2.0' started by allcheaplo1, Nov 17, 2006.

  1. Can someone please explain to me how to go about programmingthe code to redirect all request to secure session https://

    thanks,
    acl
     
  2. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    You will need to add the SSL adodn and obtain your own SSL certificate. Please contact support if you have questions.

    Eric
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Sorry Eric, i forgot to mention that i already have my ssl cert installed with DASP.

    need a few pointers on making everything secure.

    thanks,
    acl
     
  4. I've did this lots. I forget the exact code off the top of my head but its something like:

    If Request.ServerVariables('SSL') = 'FALSE' Then
    Response.Redirect('https://' & url)
    End If

    You can put it in a user control and then include it on the pages that you want to be secure.
     
  5. Thanks David. I've been waiting for a reply since 11/17

    You are the man....THANKS!!

    acl
     
  6. I forgot if you get the 'http://' when you get the original url, you might need to do a left(url,8) or something like that to trim it and then add the https://
     

Share This Page