onSessionEnd creates WEB-INF/lucee/output/onSessionEnd.out

Description

Unnecessary file access / creation happens when onSessionEnd is used. Here's how to replicate:

  • Download clean 4.5.2 express

  • Run

  • No "output" folder and no "onSessionEnd.out" file

  • Edit application.cfc to include this.sessionmanagement=true

  • Add in a onSessionEnd function which does nothing (output false / returntype void)

  • Set session timeout to tiny value

  • Refresh page

After a few seconds I have WEB-INF/lucee/output/onSessionEnd.out

This file is empty.

With every session that ends, the file remains empty, but the timestamp keeps ticking along.

Igal suggested it may have been left behind by a Lucee dev.

Behaviour confirmed on version 5 too.

Environment

CentOS 6.6
Tomcat 7.0.56
Java 1.8.0_51

and

Mac
Tomcat 7.0.52
Java 1.8.0_45

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 29 January 2016 at 11:11
Updated 29 January 2016 at 13:14
Resolved 29 January 2016 at 13:14