Whatever message this page gives is out now! Go check it out!

ORMClearSession

Last update:
May 18, 2026
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.
Note:
This function has been enhanced in ColdFusion 9.0.1 to support multiple data sources in the same application. Install the ColdFusion 9 update to use the feature.

Description

Clears the Hibernate session associated with the given data source.
The function clears the first level cache and removes the objects that are not yet saved to the database.
If you do not specify the data source, the Hibernate session associated with the default data source is cleared.

Category

Syntax

Ormclearsession([datasource])
ORMCloseSessionORMGetSessionORMFlushORMGetSessionFactoryORMClearSession() in Developing ColdFusion Applications.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page