Thanks for the hints

Regards
------Original Message------
From: techsupport
To: Atlanta Cold Fusion User Groups
ReplyTo: Atlanta Cold Fusion User Groups
Subject: Re: [ACFUG Discuss] Session variables
Sent: Mar 5, 2010 8:01 PM

I have had the same issue and Tom's response is exactly what I did.  When I 
send the email, I pass a variable that tells my gateway page where the person 
is trying to go. It checks for the session variable and then sends it merrily 
along AFTER they've logged in because it knows where to send the person as a 
result of the variable I've passed in the URL.  

good luck.

kristine
-----Original message-----
From: Tom McNeer tmcn...@gmail.com
Date: Fri, 05 Mar 2010 17:53:57 -0500
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Session variables

> 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

------Original Message Truncated------

Sent from my Blackberry

Reply via email to