[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Detecting a secure page [is_secure]


At 03:44 PM 6/9/2006, you wrote:
How can I detect whether or not the current page is https?  I've tried
[if session shost] and the [is_secure] UserTag specified here:

http://www.icdevgroup.org/pipermail/interchange-users/2002-May/021454.html

I had a little time to play with this: (This usertag worked for me)  IC5.4.x

UserTag is_secure Routine <<EOR
sub {

if ($Tag->env('HTTPS') =~ /\S/) {
        return 1;
} else {
        return 0;
}

}
EOR


-Steve
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.