Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
v_roma #1
client-side code to require ssl
Hi everyone, I am looking for a way to require (redirect) users to access the
page they are on via SSL. The reason why I want to do this on the client-side
is because I don't have access to the server and also because I want to have
portions of the web site that do not require secure access. Is there a way to
do this through the application template? I am using CF 5, by the way. Thanks
much, v_roma
v_roma Guest
-
How to Post back page from Client side code?
Hi, I am developing a website in ASP.NET. I want to have a client side code to confirm the deletion of some information from backend database. I... -
flashcom: client side cant access server side
hi all, i hav install the flash com on the PC. It work well, on the server PC, i can access and log in to the 'chat room'.. however, if im... -
Request a Client-Side Certificate using ASP.NET Code
(Type your message here) -------------------------------- From: surya Prakash Hi, for installing client certificate the conventionl method is... -
Controls with a client side onLoad function or seting a cursor server side
Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or... -
button evet ---- server side - client side ???
I want to use button. My question is that How can use server side and client site event at the same time. That is: I want to use button : when... -
Ken Ford - *TMM* & PVII #2
Re: client-side code to require ssl
How about putting this on pages that require SSL:
<!--- If not in a https --->
<cfif CGI.HTTPS EQ "off">
<!--- Send it to the https --->
<cflocation addtoken="no" url="https://#CGI.SERVER_NAME##CGI.SCRIPT_NAME#">
</cfif>
And this on pages that do not require SSl:
<!--- If this page is in a https --->
<cfif CGI.HTTPS EQ "on">
<!--- Get it out of the https --->
<cflocation addtoken="no" url="http://#CGI.SERVER_NAME##CGI.SCRIPT_NAME#">
</cfif>
--
Ken Ford
PVII Support Team
[url]http://www.projectseven.com[/url]
Team Macromedia Volunteer - Dreamweaver
Certified Dreamweaver MX 2004 Developer
"v_roma" <webforumsuser@macromedia.com> wrote in message news:d3m0dq$k5f$1@forums.macromedia.com...> Hi everyone, I am looking for a way to require (redirect) users to access the
> page they are on via SSL. The reason why I want to do this on the client-side
> is because I don't have access to the server and also because I want to have
> portions of the web site that do not require secure access. Is there a way to
> do this through the application template? I am using CF 5, by the way. Thanks
> much, v_roma
>
Ken Ford - *TMM* & PVII Guest
-
v_roma #3
Re: client-side code to require ssl
Thanks a lot, I'll give it a try. And what if I wanted to force https on a whole directory, could I use the application template? If so, how.
v_roma Guest
-
JMGibson3 #4
Re: client-side code to require ssl
you'd have to tack on a '?' and #CGI.QUERY_STRING#
JMGibson3 Guest
-
v_roma #5
Re: client-side code to require ssl
Thanks. I actually just came across the following code: <CFIF CGI.SERVER_PORT
eq '80'> <CFIF CGI.QUERY_STRING eq ''> <CFSET variables.query = ''> <cfelse>
<CFSET variables.query = '?#CGI.QUERY_STRING#'> </CFIF> <CFLOCATION
url='https://#CGI.SERVER_NAME##CGI.SCRIPT_NAME##variables.query #'
addtoken='no'> <CFABORT> </CFIF> which, when added to the application page,
redirects users to https for all pages under that application template.
v_roma Guest



Reply With Quote

