Force SSL connections |
10/14/2011 5:03:45 PM |
PHPRunner General questions | |
C
ckranich authorDevClub member
Hello all, function secure_page() { if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) !== 'on' ) { header ('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI';]); exit(); } } secure_page();
|
|