• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Sessions and the Application... > ColdFusion Sessions and Session Vari...

ColdFusion Sessions and Session Variables

A session refers to the unique interaction of one client with the ColdFusion server during a single use of an application. Any number of pages may be viewed during a session. Because a session is tied to an individual user, ColdFusion can maintain a separate session variable space, which can be used to store variables.

It’s pretty easy to tell when a new session starts. When a request comes in from a new client, ColdFusion creates the session space for that user. Because the web is stateless, however, it’s not always possible to tell exactly when the client is done using the application, allowing the session to be discarded. Even if you provide a means for a user to log out of your application, it’s possible in the volatile world of Internet communications that it’ll never happen—the user could close the browser without logging off, the connection could be disconnected, and so on.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint