Voting

The Note You're Voting On

If you have problems with $_SERVER['HTTPS'], especially if it returns no values at all you should check the results of phpinfo(). It might not be listed at all. Here is a solution to check and change, if necessary, to ssl/https that will work in all cases: