RE: [PHP] URL verification
| From: | Justin Palmer | Date: | Fri, 08 Oct 2004 15:00:51 +0000 |
| Subject: | RE: [PHP] URL verification | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198973@lists.php.net to get a copy of this message | ||
>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@hal.min-saude.pt]
Sent: Friday, October 08, 2004 7:49 AM
To: php-general@lists.php.net
Subject: [PHP] 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@hal.min-saude.pt
--
Divisao de Informatica
informatica@hal.min-saude.pt
Tel: +351 272 000 155
Fax: +351 272 000 257
--
Hospital Amato Lusitano
Av. Pedro Alvares Cabral
6000-085 Castelo Branco
geral@hal.min-saude.pt
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