$_SERVER["HTTPS"] is empty

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    $_SERVER["HTTPS"] is empty

    HI,

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

    Thanks!
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    $_SERVER["HTTPS&quo t;] 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

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      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).

      Comment

      Working...