What is state? You may have heard the popular phrase, "The Web is a stateless
environment." Simply put, data cannot persist across multiple page requests
to the server. By nature, each request is independent of the others.
When building Web applications, we often have a need for persistent data,
data that is available across multiple page requests while being unique to
each user. There are many uses for persistent data, from checking to see if a
user's session has timed out, to storing information about a user for use
later in the application.
How Is State Created?
For data to persist, state must be created between the client and the
application. In ColdFusion, state is created with two identifiers/variables
that are unique to each user, CFID and CFTOKEN. For a state to p... (more)