|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
Request_IsSSL() - Is the current request SSL (HTTPS)?This is the defacto method for determining if the current request is SSL or not.
function Request_IsSSL() {
return (
( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ) ||
( isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' )
);
}
|
|
|
|
Entire Thread
|
Request_IsSSL() - Is the current request SSL (HTTPS)?
|
Russ
|
06/18/13 11:53 PM
|
|
|
|