Can't disable session management

Description

You can't turn off the session scope in their ColdBox app because Adobe CF doesn't handle the following like it should.

Also, Adobe's behavior has changed between 2016 and 2018 too

I created a test app and set this.sessionmanagement=false and ran these tests
Adobe 2016

  • isNull( session ) - NO

  • isDefined( 'session' ) - YES

  • getApplicationMetadata().sessionManagement - NO

Adobe 2018

  • isNull( session ) - YES

  • isDefined( 'session' ) - YES

  • getApplicationMetadata().sessionManagement - NO

Lucee 5.3.6

  • isNull( session ) - Exception: session scope is not enabled

  • isDefined( 'session' ) - false

  • getApplicationMetadata().sessionManagement - false

The ONLY reliable way to test across all engines if the session scope is enabled is to use

Assignee

Luis Majano

Reporter

Brad Wood

Labels

None

Fix versions

Priority

Major
Configure