Forums
This topic is locked
Detect if SSL
Posted 03 Jul 2002 08:00:33
1
has voted
03 Jul 2002 08:00:33 Abstract Chap posted:
I have just registered a new 128-Bit SSL Cert and want to know if it is possible to detect is a user is browings the site via a standard HTTP or secure HTTPS connection.So I can display a warning if they use a data entry form or if possible just redirect them to HTTPS if they come in on HTTP.
Thanks
Stephen
Replies
Replied 03 Jul 2002 16:46:45
03 Jul 2002 16:46:45 Brent Colflesh replied:
Dear Stephen,
There are a bunch of Javascript snippets for this - check Google -
In PHP, suppose you could make an if...then statement that checks:
HTTP_ENV_VARS["SERVER_PROTOCOL"]
or
HTTP_SERVER_VARS["SERVER_PROTOCOL"]
But I have never tried this - post back with your solution!
Regards,
Brent
There are a bunch of Javascript snippets for this - check Google -
In PHP, suppose you could make an if...then statement that checks:
HTTP_ENV_VARS["SERVER_PROTOCOL"]
or
HTTP_SERVER_VARS["SERVER_PROTOCOL"]
But I have never tried this - post back with your solution!
Regards,
Brent