Other State Maintenance Options
As mentioned earlier in this chapter, a few drawbacks exist to using cookies. Perhaps you would rather just avoid the controversy and find some other way to maintain state from one page to the next. Two ways of doing this are available. Which one you use will depend on how you, the developer, will have the users get from one page to the next.
The main limitation of these methods is that they work only from one page to the page immediately following. If state information is to be maintained throughout a series of pages, these mechanisms must be used on every single page.
Query String
If most of your navigation is done through hypertext links embedded in your pages, you can add extra information to the end of the ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.