asp.net

C# Detect HTTPS in a load balanced environment

Detecting HTTPS in your asp.net c# web app is fairly straight forward in a normal environment with a single server solution, as you can see from the below example: if (HttpContext.Current.Request.IsSecureConnection) { Response.Write("Using HTTPS"); } else { Response.Write("Using HTTP"); } The problem comes when your web application is on multiple servers and behind a load

Read more