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)#">
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.
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.
Copy link to clipboard
Copied
checked CF admin, using CF variables, session and application are both enabled. not using jsession variables.
Copy link to clipboard
Copied
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.