Do the following in the initialization code, below the cfcomponent tag, to enable session variables: Session variables are designed to store session-level data.
If the user does not access a page of the application within this time-out period, Cold Fusion interprets this as the end of the session and clears any variables associated with that session.
The default time-out for session variables is 20 mins.
If you use Cold Fusion session variables, the Session scope has four built-in, read-only variables that your application can use.
If you use J2EE session management, the Session scope has two built-in variables.
For information on using cflock tags see Locking code with cflock A session refers to all the connections that a single client makes to a server in the course of viewing any pages associated with a given application.
Sessions are specific to both the individual user and the application.
For example, you can retrieve information about a specific user's preferences from a database once, the first time a user accesses any page of an application.
This information remains available throughout that user's session, thereby avoiding the overhead of retrieving the preferences repeatedly.
This requirement is applicable to devices that use a web interface for device management.
Session IDs are tokens generated by web applications to uniquely identify an application user's session.
In most cases, however, a web application has no way of knowing if a user has finished or is just lingering over a page.