>how can i check in the page if the user is accessing the the site via SSL ?? if(!$_server['https']) { //redirect to secure page. } There are probably better ways, maybe through apache, but I think that will work. -Justin -----Original Message----- From: Bruno Santos [mailto:bvsantos@xxxxxxxxxxxxxxxx] Sent: Friday, October 08, 2004 7:49 AM To: php-general@xxxxxxxxxxxxx Subject: URL verification Hello all. I have a login page where users have to authenticate themselves to access some site areas. Apache is configured to use https. the user when is typing the URL in the browser, i know that it will not put the https protocol. how can i check in the page if the user is accessing the the site via SSL ?? or i have to put a redirect in the page anyway, whether the user is alredy accessing the page via SSL? cheers Bruno Santos -- bvsantos@xxxxxxxxxxxxxxxx -- Divisao de Informatica informatica@xxxxxxxxxxxxxxxx Tel: +351 272 000 155 Fax: +351 272 000 257 -- Hospital Amato Lusitano Av. Pedro Alvares Cabral 6000-085 Castelo Branco geral@xxxxxxxxxxxxxxxx Tel: +351 272 000 272 Fax: +351 272 000 257 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php