asp.net - requireSSL="true" for subfolder -


Is it possible to determine the requirement of SSL = "true" for the admin part of the site alone?

You can do this easily for any page:

 < Code> HttpContext.Current.Request.IsSecureConnection.Equals (false) then react. Redirection ("https: //" + request. White ("HTTP_HOST") + HttpContext.Current.Request.RawUrl) End if  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -