Why not save the refer on the login page, and redirect to it after login.
-----Original Message----- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: 17 December 2006 18:42 To: CF-Talk Subject: Login page and cflocation I am needing to send a user back to the page they were previously at prior to login, and I have a small problem. Below is the code I am using to send the user back, but it will not work properly. What happens is that a user views a page that is in the root directory of the site and when they hit a page that requires login, they are sent one directory down to the login. I cannot seem to be able to relocate them back to the root folder after login. Dir Structure ROOT Page that needs login DIRECTORY_1 Login_page <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=#variable string#" addtoken="no"> </CFIF> </CFIF> Any help is appreciated!! 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:264265 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4