Is there a way to check if the current page was opened with SSL? For example, I want my login page (login.php) to check if it was accessed using SSL (https://mywebserver.com
Well, Here is another chunk of code. The code will return full url with https/http.