On Thursday, Oct 30, 2003, at 22:31 US/Pacific, Jeremy wrote:
I'm totally stuck. We have been beating our heads against the wall when it
comes to setting up a session variable within a CFC. We have a very OOP
programming logic and each time we process a page within the CFC it looses
the session. My question is this... I know you can set a session within a
CFC but I have been unable to get a working example. Has anyone got a
working example of creating a session scope within a CFC?

When you say "unable to get a working example", could you be more precise about what goes wrong?


Also, if you're using CFMX6.0 you need to upgrade to CFMX6.1 (which fixes the "page context bug" that might prevent you accessing session scope variables in CFCs).

<cfif #parameterexists(session.LoginSession.login)#>

"This function is deprecated. Use the IsDefined function."


(personally, I'd recommend structKeyExists() instead of isDefined() but that's another issue).

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to