MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Check for security mode



Quoting Stefan Hornburg (racke@linuxia.net):
> 
> 
> Hello, MiniVendors !
> 
> Is their a way to determine whether on a page served by the secure server or 
> served by the normal server ?
> 

Not in MiniVend 3 per se. You could write a usertag:

UserTag is-secure Routine <<EOR
sub {
	return $CGI::secure;
}
EOR

[if type=explicit compare="[is-secure]"]
This is HTTPS.
[else]
Not HTTPS.
[/else]
[/if]

In MiniVend 4, you will be able to get the status in $Session->{secure} or
[data session secure].

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
                                    131 Willow Lane, Floor 2  | ||  _ \
It's a little-known fact            Oxford, OH  45056         | || |_) |
that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: