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

session varibles not working

Guest
Aug 16, 2013 Aug 16, 2013

Copy link to clipboard

Copied

HI,

I am using a cf 9.1 app, and session variables are not working.  testpage.cfm sets a session.rage variable and has a button to go to page 2 where i cfdump the session and there is no rage variable defined there.  I am working with legacy code where apparently this used to work.  Help?  cfapplication tag below:

<CFAPPLICATION NAME="advapp" SESSIONMANAGEMENT="Yes" SETCLIENTCOOKIES="Yes" clientmanagement="Yes" APPLICATIONTIMEOUT="#CreateTimeSpan(0, 24, 0, 0)#" sessiontimeout="#CreateTimeSpan(0, 0, 45, 0)#">

Views

434

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

correct answers 1 Correct answer

Deleted User
Aug 16, 2013 Aug 16, 2013

Sorry, they were working, I was just going to a different base URL which invalidated them. i.e. my url was

http://server_name/app_name/dir/page.cfm

and i was going to

http://server_name/new_app_name/dir/page.cfm

I think session's are valid only for the base app., when you go to a new app. a new session is created.

Problem solved.

Votes

Translate

Translate
Guide ,
Aug 16, 2013 Aug 16, 2013

Copy link to clipboard

Copied

Have you checked the CF Administrator to see if sessions somehow (accidentally) were disabled at the server level?

-Carl V.

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
Guest
Aug 16, 2013 Aug 16, 2013

Copy link to clipboard

Copied

checked CF admin, using CF variables, session and application are both enabled.  not using jsession variables.

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
Guest
Aug 16, 2013 Aug 16, 2013

Copy link to clipboard

Copied

LATEST

Sorry, they were working, I was just going to a different base URL which invalidated them. i.e. my url was

http://server_name/app_name/dir/page.cfm

and i was going to

http://server_name/new_app_name/dir/page.cfm

I think session's are valid only for the base app., when you go to a new app. a new session is created.

Problem solved.

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