Do a check for a valid session as part the application.cfm. The code for the login is part of the application.cfm and if a valid session exist then it goes straight to the calling page. After a successful login they will also be directed to the page called. I can send you an example offline if you want.
-----Original Message----- From: Chris Luksha [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:23 PM To: CF-Talk Subject: Sending back to referer I have an application that requires login. (newbie creation of mine) I am trying to make it so that if someone gets booted to the login page from say, a page that they bookmarked, that when they successfully log in, they are sent back to the page they were trying to get to in the first place. Any suggestions on how I might go about this? I have tried setting a variable to be the referer if there is not variable set already, but I am probably getting the syntax all wrong. Might a cookie just work better. I am using session variables in the application. Anyone tell me a way to get this done? Thanks, Chris Chris Luksha IS/Web Programmer Helmers Publishing, Inc. Publishers of Desktop Engineering and Supply Chain Systems Magazines (603)924-9631 ext. 267 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.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

