Skip to main content

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics