[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

Session variable issue

I have an application that uses session variables and for some reason it is not creating the cfid or cftoken variables...
this is what i have in my application.cfm
<cfapplication name="lead_mgmt"
               ClientManagement="no"
               SessionManagement="Yes"
               SessionTimeout="#CreateTimeSpan(0,0,30,0)#"
               SetClientCookies="Yes">
      
<CFPARAM name="session.IsLoggedIn" default="NO">
<CFPARAM name="session.Username" default="">
<CFPARAM name="session.Password" default="">
<CFPARAM name="session.uid" default="">
<CFPARAM name="session.jrrid" default="">
<cfparam name="session.manLeadID" default="">

if i do a <cfdump var=#session#>
it only shows the cfparams defined above....
on a test site it would show what is above plus the ones in there by default
0
jduawa
Asked:
jduawa
  • 2
1 Solution
 
aftershoxCommented:
Hmmm that looks right to me. My CFAPPLICATION Tag Looks like this:
<cfapplication sessionmanagement="Yes" setclientcookies="Yes" name="test">

And on the debug output on looking at a page it shows:
Session Variables:
cfid=2200
cftoken=59310755

Try this. Copy your cfapplication or the one I wrote into like a test.cfm, and load test.cfm. And then try it. My vibe is that your Application.cfm isn't even executing.

What about cookie vars, do you get the CFID/CFTOKEN cookies?

Under the CF Admin/Memory Variables, what do you have going on there? Make sure to enable Session Variables.

Hope that helps.
0
 
jduawaAuthor Commented:
if i create a test application then i see the session variable that are missing from my real application
in the debugging output un the http_are there is a cfidand cftoken but not being dumped as a session variable
0
 
jduawaAuthor Commented:
Well i think it had a little something to do with the spyware software on my pc that was blocking cookies or csomething, because after i deleted the cookie my app created it works ok...go figure, please refund the points...
0
 
moduloCommented:
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now