Re: How to be sure to use SSL

From: Date: Sat, 02 Dec 2006 21:38:15 +0000
Subject: Re: How to be sure to use SSL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-245455@lists.php.net to get a copy of this message
Richard, as i wrote you before, i've gotthe following suggestion to implement before to run the rest of my PHP code. if($_SERVER['HTTPS']!='on') { header('location:https://www.mysite.com'); exit; } ... but i do not know if it's enough. Alain On 12/2/06, Richard Lynch <ceo@l-i-e.com> wrote:
On Sat, December 2, 2006 2:17 am, Alain Roger wrote: I would like to know how can i be sure to make customer use the SSL all the time. all the time in my PHP code, i write links as relative links, so without HTTPS. I was thinking to check everything if the port is the SSL port (default : 443), but it does not mean that protocol is HTTPS. So, how do you ensure that customer uses SSL protocol all the time ? I was asking myself that same question last week, but I searched on http://php.net for the answer. Did you try that? :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?
-- Alain ------------------------------------ Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5

« previous php.general (#245455) next »