Connecting Tech Pros Worldwide Forums | Help | Site Map

$_SERVER["HTTPS"] is empty

Familiar Sight
 
Join Date: Apr 2008
Posts: 149
#1: Sep 23 '08
HI,

Even thought the request is made through https , $_SERVER["HTTPS"] is empty .. Can anyone suggest why this is happening .?

Thanks!
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,646
#2: Sep 23 '08

re: $_SERVER["HTTPS"] is empty


Even though it may not be of much help... does the phpinfo()/var_dump() output show nothing too? that's all I can think of.

regards
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,747
#3: Sep 23 '08

re: $_SERVER["HTTPS"] is empty


Try checking the $_SERVER['SERVER_PORT'] variable. If it is set to 80, you are using a non-secure connection.

If it is indeed a secure connection, it would be set to a different port (usually 443).
Reply


Similar PHP bytes