CFThread loses session in requests launched via CFSchedule

Description

If CFThread is used in a request which was launched without CFID/CFToken cookies, a new session is created for the thread

run the attached code (thread-test.cfm) - if this is run from the browser in an established session (i.e. CFID/CFToken are stable from one request to the next), the output shows that CFID is consistent between the main request and the child thread

run this code via CFSchedule (or CFHTTP without passing any cookies) [log output to file for CFSchedule], and observe that the CFID is NOT the same

Environment

Windows 7, 16GB, Java 8_60

Attachments

1

Activity

Pothys - MitrahSoft 19 December 2016 at 11:14

I've added test case for this ticket. If we send a request to cfthread via CFSchedule and http request, it loses session and create new session for that thread. This issue is fixed in the Latest version of lucee.

Pull Request: https://github.com/lucee/Lucee/pull/140

Assignee

Reporter

Priority

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 23 October 2015 at 20:03
Updated 5 June 2020 at 15:06