Hi, I need to ensure that the request coming in is via HTTPS not HTTP - perhaps even redirecting the user to the HTTPS page if required.
How can I detect whether SSL is used or not? The SERVER_PORT environment variable isn't sufficient if the web server is not running on standard ports, and SERVER_PROTOCOL is of no use either
Any ideas appreciated
2006-08-11 Retitled by planetscape, as per Monastery guidelines
Original title: 'Determining whether request is coming via SSL'
In reply to (OT) Determining whether request is coming via SSL by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |