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

session varibles not working

Guest
Aug 16, 2013 Aug 16, 2013

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)#">

511
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

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.

Translate
Guide ,
Aug 16, 2013 Aug 16, 2013

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

-Carl V.

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

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

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

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