The IsSecure method checks whether the current page was retrieved
using a secure connection. Because the security state of the session
changes several times as a page is loaded, this value should
only be considered authoritative after navigation has completed. It is
possible for the method to initially return TRUE as the page
is loading, but return FALSE when navigation completes if
the page contains mixed content.
This method only returns TRUE if the document and all
its assets were retrieved using a secure connection. The security certificate
must be valid and the connection cannot use weak encryption or deprecated
cipher suites. If a secure connection was used but there were problems
detected with the certificate or security protocol, this method will return
FALSE. For more information about the connection, use the
GetSecurityInfo method.