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

Disappearing session variables

New Here ,
May 23, 2010 May 23, 2010

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?

Views

1.4K

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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
Documentation