Hi Moises, In general, what you want to do is this: as a request is being processed (perhaps within the OnRequest method of Application.cfc, or elsewhere if you're using a framework), you need to check to see if the user is logged in, probably by checking for existence of some session variable. So instead of getting an error saying the variable is undefined, you do <cfif NOT isDefined("session.whatever")>.
If the person is not logged in, then you need to grab the URL string that s/he was trying to access and redirect the user to the login page, including the original URL in some manner. I've sometimes created a POST action to the login page, so that the string comes into the login page as a form variable, say "form.intendedURL." You send that information along with the login. If the login is successful, you can then redirect the user to the intended page, because you know the URL or queryString values. I realize that's a general response, but you need to build around your application's architecture. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560