Skip to main content
August 16, 2013
Answered

session varibles not working

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    August 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.

    3 replies

    Carl Von Stetten
    Legend
    August 16, 2013

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

    -Carl V.

    Translate
    August 16, 2013

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

    Translate
    Correct answer
    August 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