Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


The Perl You Need to Know:Part 3 "Maintaining State"

June 14, 1999

Despite the jargony jingle, maintaining state is a process in which we engage daily in our own lives, from building a ham and turkey triple-decker sandwich to reading a book. In fact, a simple analogy is the humble bookmark. That little card we stick inside an evening's reading material maintains the "state" of the book -- that is, where we left off. Similarly, to assemble a sandwich one must retrieve a series of ingredients, all the while remembering which ingredients have already been retrieved. This, too, is a way of maintaining state -- tracking a state of affairs over the course of several steps. Talk of sandwiches aside, this article will focus on techniques for maintaining state across Web pages, thus allowing the Web site to "remember" information across a series of steps. Such techniques are commonly used in "remembering" user preferences or the popular shopping cart mechanisms used on retail Web sites. As the third installment in the Perl You Need to Know series, this article will of course assume a basic familiarity with Perl, as well as using the CGI module, as covered in parts 1 and 2 of this series.

The State of State
Cookies: Our Misunderstood Friends
Cookie Example: Part I -- Retrieving the Cookie
Cookie Example: Part II -- Creating the Cookie
Final Cookie Thoughts
Single-Session State Maintenance
Building a Pizza: Taking the Order
Building a Pizza: Calculating Cost
Building a Pizza: Completing the Order
Building a Pizza: Updating the Order
Final Thoughts

The Perl You Need to Know
The State of State


Up to => Home / Authoring / Languages / Perl / PerlfortheWeb




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers