One way is to grab the CGI.HTTP_REFERER and CGI.QUERY_STRING values on the login page, and submit it with the Username/password. If the validation works, then do a redirction to the required page - if the required page isn't known, then just redirect to the default home page. And let the user navigate to where they wanted to be in the first place.
Another option is to URLEncode the CGI.SCRIPT_NAME, and tack this onto the URL to the login page as a "Target" variable. This takes a little less work than the previous method, but the two are essentially the same. I've done both, and only run into business rule type issues with them, and even then those are pretty rare. (i.e. the client wants to do something slightly abnormal on validation...) My thoughts... Shawn Grover -----Original Message----- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:10 PM To: CF-Talk Subject: Redirection after login Got a question for you folks. If I try to access this page: http://www.domain.com/page.cfm?param1=value1¶m2=value2¶m3=value3 And I have a check on that page that sees if a user is logged in, and if they are, no problem display the page, if they aren't, I want to redirect them to a login.cfm page that will let them log in and then return them to wence they came, back to the above url. Note: the url above is unknown .. it could be "anotherpage.cfm?param1 ....." How are you all doing this? Are some of u just passing the location as a url variable? Just looking for some good suggestions for dynamically returning folks from where they came. A best practice sorta thing! Thank You Paul Giesenhagen QuillDesign ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

