Re: how tell if secure connection?
| From: | Teodor Cimpoesu | Date: | Sat, 28 Oct 2000 12:48:24 +0000 |
| Subject: | Re: how tell if secure connection? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22441@lists.php.net to get a copy of this message | ||
Hi Hardy!
On Fri, 27 Oct 2000, Hardy Merrill wrote:
> I'm wondering how to tell if the user's browser connection
> is "secure"? I was trying to use a secure password cookie
> to tell, thinking that the secure cookie wouldn't be passed
> to the server if the connection wasn't secure, but that
> doesn't seem to work - the cookie is being passed even
> when the connection is NOT secure.
>
> Is there an environment variable that tells you if the
> connection is secure?
yes, over a SSL connection, there are a bunch or variables
set. Like:
$HTTP_SERVER_VARS["HTTPS"]== on
$HTTP_SERVER_VARS["SERVER_PORT"]== 443 // the SSL port
-- teodor