Here's how I do this using session variables (sorry this is way late,
I'm behind in catching up on my reading):

In my application.cfm I have this:

<cfif Not Session.UserLoggedIn>
  <cfset Session.Goto = #CGI.SCRIPT_NAME#>
    <cfif CGI.QUERY_STRING NEQ "">
      <cfset Session.Goto = #CGI.SCRIPT_NAME# & "?" &
'#CGI.QUERY_STRING#'>
    </cfif>
</cfif>

After the user completes the login form and is sent to the action page
to authenticate their login info, I have something like this if they
successfully were able to login:

<CFOUTPUT>
<P>Your login was successful.<BR> You are logged in as:

<B>#GetUser.FName# #GetUser.LName#</B>. You have logged in #VisitCount#
times.</p>

<P>
<cfif Session.Goto IS NOT "">
   <A HREF="#Session.Goto#">
<cfelse>
   <A HREF="somedirectory/someurl.cfm">
</cfif>Continue</A></p>
</CFOUTPUT>


Chris Montgomery             [EMAIL PROTECTED]

Web Development & Consulting http://www.astutia.com
Allaire Consulting Partner & NetObjects Reseller
210-490-3249/888-745-7603    Fax 210-490-4692



>-----Original Message-----
>From: j p [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 25, 2000 1:14 PM
>To: CF-Talk
>Subject: Login logic...
>
>
>
>I have a request that a user be returned to the page from
>wence they came -
>if they get rerouted to a log in screen (due to timeing out)...
>
>Or in lue of that, if a user is on a page, and they time out,
>then click on
>a link...Is there a way to use that "clicked on" link as teh
>destination
>after they log back in...
>
>Jp

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to