mammer
|
Posted: 09/07/2003, 1:05 PM |
|
I am using codecharge 2.05 on Windows 2000 with ASP and IIS 5.1. How do I configure my application to use SSL and show https:// rather than http://? Please provide step by step instuctions as I am relatively new to codecharge and IIS.
Thanks!
|
|
|
Randy Lane
|
Posted: 09/07/2003, 1:30 PM |
|
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
|
|
|
Mehmet Ozdemir
|
Posted: 09/07/2003, 2:51 PM |
|
I find it better to implement the above method in the Seesion_OnStart Event in Global.asa that way i get it out on the way on session startup. If you do this in later on by switching to https: will will get a new session ID all user state info will be lost.
|
|
|