Set Secure Session Cookie if HTTPS Compatible With MS IIS Server

This adds check for $_SERVER['HTTPS'] return value for MS IIS server.