application and session scope not being set

69 views
Skip to first unread message

Brad K

unread,
Feb 20, 2017, 5:20:04 PM2/20/17
to Lucee
Hello!

I have recently switched a project from CF9 to Lucee, and this has been my first attempt at doing so. Most of the code works just fine, except I am having trouble setting application and session scope variables.

For example, at the top of a script I have <cfset session.foundEventChange="0" /> and when attempting to access it later on I receive the error "key [FOUNDEVENTCHANGE] doesn't exist".

I have set session management to "On" in both the server admin and site admin. I have also turned it on in application.cfc. I have the same problem with the application scope as well.

I can not find any information on why this might be occurring and it is driving me mad.

Thank you for any help.

Brad

Zac Spitzer

unread,
Feb 21, 2017, 3:34:48 AM2/21/17
to lu...@googlegroups.com
what does cfdump-ing session show?

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/cd204b36-9c35-430e-ac24-f500b1b70780%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Zac Spitzer
+61 405 847 168

Brad K

unread,
Feb 21, 2017, 1:43:28 PM2/21/17
to Lucee
I want to thank you. I discovered I am dumb. So I did cfdump right before I accessed the session scope and it was coming out empty, minus the application created values. I had done this before I posted my question. When you asked, I did it again but right after setting the session variable (admittedly something I should have done before), and it was showing them. Comparing the two I noticed the application name was changing in the sessionid. Some of this code is really old and for some reason one of my cfincludes was creating a whole new cfapplication, don't ask me why. That explains why my application variables were being removed as well. I have no idea why this was working just fine in CF9.

Thanks again, I will show myself out!


On Tuesday, February 21, 2017 at 3:34:48 AM UTC-5, Zac Spitzer wrote:
what does cfdump-ing session show?
On Mon, Feb 20, 2017 at 11:19 PM, Brad K <br...@xdegree.com> wrote:
Hello!

I have recently switched a project from CF9 to Lucee, and this has been my first attempt at doing so. Most of the code works just fine, except I am having trouble setting application and session scope variables.

For example, at the top of a script I have <cfset session.foundEventChange="0" /> and when attempting to access it later on I receive the error "key [FOUNDEVENTCHANGE] doesn't exist".

I have set session management to "On" in both the server admin and site admin. I have also turned it on in application.cfc. I have the same problem with the application scope as well.

I can not find any information on why this might be occurring and it is driving me mad.

Thank you for any help.

Brad

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/cd204b36-9c35-430e-ac24-f500b1b70780%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages