Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Disappearing session variables

New Here ,
May 23, 2010 May 23, 2010

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?

1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 23, 2010 May 23, 2010

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.html

2. 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-7cbf

3. Are sessions enabled in your Application.cfc?


http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7c48.html#WS7BC953A6-8CA7-4759-BDDF-15000CBCC0CD

Message was edited by: JR "Bob" Dobbs: Edit hyperlink

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 08, 2010 Jun 08, 2010

Do both pages have the same application name in <CFAPPLICATION> tag?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2010 Jun 08, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2010 Jun 08, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources