Abstract
As we have discussed before, one of the main problems with the Web is that it is “stateless.” The web server doesn’t have a concept of who a user is and what the user is doing; it simply accepts an incoming request and returns the parsed information. Most variable scopes within ColdFusion are destroyed after the template has finished being processed. The point of persistent variables is to allow you to create a variable once and have that variable persist (not be destroyed) for a specified duration. One benefit of this is the ability to uniquely identify visitors to your web site. Performance is the other benefit; performance improves because variables do not have to be recreated on each request or even for each visitor to the site. In this chapter we focus primarily on the former benefit: the ability to track users on your site and to associate values with a user.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2004 Apress
About this chapter
Cite this chapter
deHaan, J., deHaan, P., Horwith, S., Hermann, C., Foti, M., Zubler, E. (2004). Maintaining State. In: ColdFusion Web Development with Macromedia Dreamweaver MX 2004. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0685-9_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0685-9_7
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-59059-237-3
Online ISBN: 978-1-4302-0685-9
eBook Packages: Springer Book Archive