[ic] Secure or not secure is the question

Stefan Hornburg racke@linuxia.de
30 Nov 2000 12:08:28 +0100

I'm currently in the process to update http://www.materialboerse.de/
to IC (runs on hacked MV 3 for now).
I wonder which is the best method to determine whether the page
comes from the normal or the secure web server for the language
selection on top of every page.

My solution is:

Autoload <<EOS
if ($Session->{shost} =~ /\S/) {
	$Scratch->{secure} = 1;
} else {
	$Scratch->{secure} = 0;

Any comments are welcome !


LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---