Page 1 of 1
SSL conversion
Posted: Wed Oct 18, 2006 3:57 pm
by murlopaz
Hi everybody, I have a website in working condition that works with sessions ( loing page)
How Do I implement the SSL on my website...
i.e. I want the username and password to be sent securely over the internet.
Thanks.
Posted: Wed Oct 18, 2006 4:04 pm
by feyd
- Have your host turn on SSL support.
Done.
Posted: Wed Oct 18, 2006 4:15 pm
by murlopaz
hmm and that's it?
say the path to my login page is:
http://www.abc.com/login
is it going to automatically redirect to
https://www.abc.com/login?
or I should specify https?
Posted: Wed Oct 18, 2006 4:22 pm
by John Cartwright
You have to specify which pages you want to be run under SSL.
Code: Select all
if ($_SERVER['HTTPS'] != 'on') {
header('Location: https://domain.com/login.php');
exit();
}
//rest of login script goes here