Lucee Function Reference

ormclearsession()

Removes all the entities that are loaded or created in the session. This clears the first level cache and removes the objects that are not yet saved to the database.

Example

ormclearsession([string datasource]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
datasource string  No datasource used for the session, if nor defined the datasource defined in application.cfc/cfapplication is used.