This is totally driving me nuts!! For those of you who missed my troubles, I 
will go over it again. I have a page in the root of my site that requires a 
user to login. My login page is located in a child directory and I am needing 
to force the user back to the page they were originally looking for prior to 
login. I cannot seem to be able to <cflocation> them from the child folder back 
to the root folder where that page is at. I have tried the code below, but it 
simply does not work, as it is sending them back to the index.cfm of the 
current "CHILD" folder instead of the "ROOT" folder. I have also tried setting 
the return url prior to login, but that simply sets the login page as the last 
page in the CGI.SCRIPT_NAME. Has anybody handled this problem before and may 
have a simple solution?



<CFIF IsDefined("Session.RUserName")>
 <CFIF Session.RUserName is "Guest">
  <CFPARAM name="attributes.thispage" 
default="#GetFileFromPath(GetTemplatePath())#">
  <CFPARAM name="attributes.querystring" default="?">
  <CFPARAM name="attributes.variablestring" default="#CGI.QUERY_STRING#">
  <CFSET thispage = attributes.thispage>
  <CFSET querystring = attributes.querystring>
  <CFSET variablestring = attributes.variablestring>
  <CFLOCATION 
url="index.cfm?page=login&requested=#thispage##querystring#&string=#variablestring#"
 addtoken="no">
 </CFIF>
</CFIF>




Doug

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264293
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to