Re: How to be sure to use SSL

From: Date: Sat, 02 Dec 2006 19:55:39 +0000
Subject: Re: How to be sure to use SSL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-245448@lists.php.net to get a copy of this message
my solution: if($_SERVER["HTTPS"] != 'on') { header ('location: https://www.your_domain_here.com'); exit; } -afan > Hi, > > 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 ? > > thanks a lot, > > Alain > ------------------------------------ > Windows XP SP2 > PostgreSQL 8.1.4 > Apache 2.0.58 > PHP 5 >

« previous php.general (#245448) next »