Helli everybody. Im trying to implement a secure registration for customers using SSL. Im doing my tests using a 14-days trial SSL certificate. The registration page is register.asp, and when submitting the form, the user information goes to registerme.asp which will add the record to the database, gives the user a message and the username and the password, and after 5 seconds, the page will be redirected to login.asp.
I want only the register.asp page to be secured. Ive used the below code (from microsoft) to force the page to https.
The main page (index.htm) is accessed normally (via http), and when clicking on the "register" link, the registration page will shift to https automatically because of the above code. But the problem here is that when sending the information to registerme.asp, it is still HTTPS and when redirecting the user to the login page, it is still in https mode. Any help for shifting back to http on registerme.asp?
Many thanks in advance.
I want only the register.asp page to be secured. Ive used the below code (from microsoft) to force the page to https.
Code:
<%
If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL
strSecureURL = "[URL unfurl="true"]https://"[/URL]
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL")
Response.Redirect strSecureURL
End If
%>
The main page (index.htm) is accessed normally (via http), and when clicking on the "register" link, the registration page will shift to https automatically because of the above code. But the problem here is that when sending the information to registerme.asp, it is still HTTPS and when redirecting the user to the login page, it is still in https mode. Any help for shifting back to http on registerme.asp?
Many thanks in advance.