fn79
fn79

Reputation: 303

Coldfusion enabling J2EE session variables vs Coldfusion session variables

I turned on the session management in my application and find that session variables (user defined as well as cfid and cftoken) do no persist between pages when I do not turn on 'Use J2EE session variables' in CF Admin. Once I turn on this setting, the session variables persist. Below is the code in application.cfm

<cfapplication name="myapp"
    applicationtimeout="#createtimespan(1, 0, 0, 0)#"
    sessionmanagement="yes"
    sessiontimeout="#createtimespan(1, 0, 0, 0)#"
    clientmanagement="no">

Both 'Use J2EE session variables' as well as 'Enable Session variables' are turned on in CF admin.

Everything works fine on my personal laptop when I whip up a sample application (I don't have J2EE session variables turned on here).

Can someone clarify why this discrepancy. Why session variables are persisting between pages only when I turn on J2EE session?

Upvotes: 1

Views: 1187

Answers (1)

delroekid
delroekid

Reputation: 88

check out your Global session timeout settings in the CFIDE admin page.

this will always override every settings in all the Applications.

Upvotes: 1

Related Questions