A
Alan Moseley
Please can someone put me out of my misery. I am used a shared hosting
provider to host my asp website. I need certain pages of my site to be
viewed over SSL. I have therefore inserted the following code into the
Page_Load event of a page that needs to be viewed over SSL:-
Dim strURL As String = ""
If Not Request.IsSecureConnection Then
strURL = Request.Url.AbsoluteUri.Replace("http://", "https://")
Response.Redirect(strURL, True)
End If
On IE the page never loads, and on Firefox I get a message stating that the
redirection limit has been exceeded.
Have I inadvertently caused a loop, and if so, why? Many thanks in advance.
provider to host my asp website. I need certain pages of my site to be
viewed over SSL. I have therefore inserted the following code into the
Page_Load event of a page that needs to be viewed over SSL:-
Dim strURL As String = ""
If Not Request.IsSecureConnection Then
strURL = Request.Url.AbsoluteUri.Replace("http://", "https://")
Response.Redirect(strURL, True)
End If
On IE the page never loads, and on Firefox I get a message stating that the
redirection limit has been exceeded.
Have I inadvertently caused a loop, and if so, why? Many thanks in advance.