FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Secure log in System





chatrack
Hi,

Secure log in system SSL is found in many sites.

How can we setup a secure log in system with php?

How to check SSL facility in available on a hosting service?
badai
you don't do it with php. you do it with your web server.

http://httpd.apache.org/docs/2.2/ssl/

the most easy way to check is the obvious one: ask! e-mail, call or fax them. some even have live support.
jmraker
Once you can use your website with a https:// instead of http://
add this at the top of your php script

Code:
if(!isset($_SERVER['HTTPS'])) {            // Use secure site
   header('Location: https://yourwebsitenamehere.com' . $_SESSION['REQUEST_URI']);
   exit();
}


It will redirect the page use the secure site when http:// is used. If the secure site isn't working it will redirect to an error message.
rvec
you shouldn't do that in PHP, but in your htaccess instead. It'll be faster, cleaner and use less resources.
chatrack
Hi,
What is difference in http and https ?
I think https is complicated(to understand) in web request handling...
Fire Boar
chatrack wrote:
Hi,
What is difference in http and https ?
I think https is complicated(to understand) in web request handling...


HTTPS uses SSL encryption. HTTP doesn't. That's the difference, and the encryption layer is why HTTPS is more complicated.
Related topics
Windows Vista Official Thread
Protect your pc from new virus programs..
a challenge?
10 things you should know about every Linux installation
SQL error
The Best Secure Linux System
BSD anyone?
most secure O.S
Linux.Vs.Vista
Simplest Free CMS?
Security Forum
BSD a better OS than Linux?
Any good *free* Antivirus Progs out there?
I plan to get my own domain but how ?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.