Randy Lane
|
| Posted: 10/29/2002, 1:30 PM |
|
Does anyone have experience in having select pages set to be secure using the https:// url? I am using CodeCharge 2 and output to ASP. My client has a secure certificate and I need to utilize that when a customer is on the shopping cart page with sensitive information.
Thanks
|
|
|
 |
RonD
|
| Posted: 10/31/2002, 1:49 AM |
|
Hello,
Looks like you should replace all http:// with https://.
The easy way to do it with CC is to redirect user to SSL page if protocol is HTTP. Here is sample ASP code tha could be placed at the Open event of the page.
dim sURL: sURL = ""
if Request.ServerVariables("HTTPS") = "off" then
sURL = "https://"
sURL = sURL & Request.ServerVariables("SERVER_NAME") & _
Request.ServerVariables("SCRIPT_NAME") & "?" & _
Request.ServerVariables("QUERY_STRING")
response.redirect sURL
end if
|
|
|
 |
|