Skip to main content
August 16, 2007
Answered

Session Variables disappearing

  • August 16, 2007
  • 2 replies
  • 334 views
Hi All,

I'm finding that my session variables seem to keep disappearing every now and again. I'm setting them correctly in my <cfapplication> tag and setup correctly in CF Administrator, yet everynow and again they just disappear.

Now I'm using CF5 (moving to CF8 though in a few months ), and we do have a few issues that CF reboots quite sporadically through thread issues, and I'm wondering whether this is linked. Whether the session variables will reset and disappear when the server restarts.

Could this happen?

Hope you can help.

Paul Pounder
    This topic has been closed for replies.
    Correct answer Newsgroup_User
    Whether the session variables will reset and disappear when the server
    restarts.

    Could this happen?

    Yes, a restart of the server or even just the CF Service will cause the
    loss of all persistent memory variables such as session, application and
    server. Basically everything except cookie based valued.

    In fact restarting the CF service in development is a fast way to test
    the initiation logic for these types of variables because it clears them
    all out.

    2 replies

    August 16, 2007
    Hi Ian,

    Spot on, just what I needed to hear. Its been bugging me for weeks.

    Regards

    Paul
    Newsgroup_UserCorrect answer
    Inspiring
    August 16, 2007
    Whether the session variables will reset and disappear when the server
    restarts.

    Could this happen?

    Yes, a restart of the server or even just the CF Service will cause the
    loss of all persistent memory variables such as session, application and
    server. Basically everything except cookie based valued.

    In fact restarting the CF service in development is a fast way to test
    the initiation logic for these types of variables because it clears them
    all out.