just as a side note, you cater for cgi.HTTPS eq "off" and listContains(lSecure,ObjectID) cgi.HTTPS eq "on" and not listContains(lSecure,ObjectID)
is there any chance this might happen? cgi.HTTPS eq "ON" and listContains(lSecure,ObjectID) cgi.HTTPS eq "OFF" and not listContains(lSecure,ObjectID) ie: else's to your if's ? just a thought cheers barry.b -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 25 July 2003 12:43 PM To: FarCry Developers Subject: [farcry-dev] getting in and out of https To handle setting particular pages to https and then escaping pages from the secure setting, I have put the below code in a test index page under my site's www folder. It seems to work fine, but is this the best place and best way to do it? lSecure is a list of objectIDs of pages I want to be on SSL (only one at the moment). Thanks, Natalie <cfset lSecure="2F838E7E-D0B7-4CD6-F9DB954271DB81AB"> <cfparam name="objectID" default=""> <cfif cgi.HTTPS eq "off" and listContains(lSecure,ObjectID)> <!--- reload page in secure mode ---> <cfoutput> <script> window.document.location = ("https://#cgi.server_name##cgi.script_name#?#cgi.query_string#"); </script> </cfoutput> </cfif> <cfif cgi.HTTPS eq "on" and not listContains(lSecure,ObjectID)> <!--- reload page in insecure mode ---> <cfoutput> <script> window.document.location = ("http://#cgi.server_name##cgi.script_name#?#cgi.query_string#"); </script> </cfoutput> </cfif> <cfinclude template="/farcry/#application.applicationname#/ui/index.cfm"> Natalie Spence **************************************************** Web designer/producer Australian Film Television and Radio School http://www.aftrs.edu.au/ Tel: +61 2 9805 6469 Fax: +61 2 9805 6571 AFTRS Values: Creativity, Courage, Diversity, Respect Celebrating 30 years of creative excellence **************************************************** --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
