Copy link to clipboard
Copied
Using xppro & cf9--I have session variables that I created on page A, but when I move to page B the session variables disappear. I can't figure out what I'm doing wrong....can't even firgure out where to look, although I've gone through page B to see where I might accidentally invalidate the session variables. The CFID is the same for both pages. Any thoughts?
Copy link to clipboard
Copied
Seeing the code would help.
Here are some things to check.
1. What session related settings are setup in the CF adminstrator?
http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc.html2. Are cookies enabled on the client web browser or are you using cookie-less sessions?http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0c35c-7fef.html#WSc3ff6d0ea77859461172e0811cbec22c24-7cbf3. Are sessions enabled in your Application.cfc?
Message was edited by: JR "Bob" Dobbs: Edit hyperlink
Copy link to clipboard
Copied
Do both pages have the same application name in <CFAPPLICATION> tag?
Copy link to clipboard
Copied
Yes, the problem turned out to be an application.cfm in the second page that was different than the one in the first page. Thanks for your help. Karolus
Copy link to clipboard
Copied
Karolus wrote:
Using xppro & cf9--I have session variables that I created on page A, but when I move to page B the session variables disappear. I can't figure out what I'm doing wrong....can't even firgure out where to look, although I've gone through page B to see where I might accidentally invalidate the session variables. The CFID is the same for both pages. Any thoughts?
It's difficult to tell based on what you say. Posting the relevant code is always a good place to start when asking a question about it (ie: the code).
😉
--
Adam