Re: [PHP] How to be sure to use SSL

2006-12-08 Thread Stut
Alain Roger wrote: but i do not know if it's enough. Sorry it doesn't use PHP, but this is what I do if the client wants an entire site to always use SSL. In the web server config for the non-ssl site, put a permanent redirection to the SSL site. For Apache I use the following vhost...

Re: [PHP] How to be sure to use SSL

2006-12-08 Thread Jochem Maas
Alain Roger wrote: > 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. it is enough -

Re: [PHP] How to be sure to use SSL

2006-12-02 Thread Alain Roger
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 <[EMAIL PROTECTED]> wrot

Re: [PHP] How to be sure to use SSL

2006-12-02 Thread Richard Lynch
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 > (de

Re: [PHP] How to be sure to use SSL

2006-12-02 Thread afan
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