Forum Moderators: buckworks
Response.Buffer = True
If (Request.ServerVariables("HTTPS") = "on") Then
Dim xredir__, xqstr__
xredir__ = "http://" & Request.ServerVariables("SERVER_NAME") & _
Request.ServerVariables("SCRIPT_NAME")
xqstr__ = Request.ServerVariables("QUERY_STRING")
if xqstr__ <> "" Then xredir__ = xredir__ & "?" & xqstr__
Response.redirect xredir__
End if
i put this code in the start of the thankyou page, but after this, when completing the transaction in HSBC server, the browser displays message window saying "you are about to redirect a that is not a secure yes/no"
We are running still in test mode. Is ther anyother better solution for this? because HSBC may not accept this when we go live.
Edit: what he/she said (simul-post :-D)
If so then I think you need to solve the problem generally, not just for the thankyou page - eg by using absolute links to non-secure pages as suggested.
but, they are using asp header and footer files.
So your choices are:
A) Modify the header/footer files as above, or
B) Write a self-contained Thank You page with the links hard coded.
i am trying not to change anyother file except thankyou.asp since site is going live soon. And as i told about HSBC, i am not sure about whether they would allow http "redirect" in the thankyou page, anybody know about this?
The question of whether they allow it is probably less relevant, as you saw your most important issue is the customer's impression when they hit that page - it throws up an insecure warning, which average users probably don't understand and will interpret as "bad," even though it's not.
thankyou.asp is only used upon return of a sale, is it not? Even if it's also used for contact forms or other thank-you situations - just change the links in it to full url's without http. Copy and paste the asp footers directly into the document.