Home
What's
New?
com.oreilly.servlet
Servlet
Polls
Mailing
Lists
List
Archives
Servlet
Engines
Servlet
ISPs
Servlet
Tools
Documentation
Online
Articles
The
Soapbox
"Java
Servlet
Programming,
Second Edition"
"Java
Enterprise
Best Practices"
Speaking
& Slides
About
Jason
XQuery
Affiliate
Advertising
Info
|
Chapter 7 Examples from Java Servlet
Programming
- 7-1: Session tracking using hidden form fields
- 7-4: Session tracking a hit count
- 7-6: Invalidating all stale sessions
- 7-7: Snooping session information
Examples from other chapters:
- Example 7.1: Session tracking using hidden form fields
- This servlet demonstrates session tracking using hidden
form fields by displaying the shopping cart for a bookworm.
Note that, if you try this servlet, the buttons at the bottom
of the page it generates don't take you anywhere real.
- Example 7.4: Session tracking a hit count
- This servlet uses session tracking to count the number of times
a client has accessed it. The servlet also displays all the bindings
for the current session, just because it can.
- Example 7.6: Invalidating all stale sessions
- This servlet manually invalidates all the sessions on the
server that are more than a day old or have been inactive
more than an hour.
- Try it (diabled, no longer supported on API 2.2)
- Source
- Example 7.7: Snooping session information
- This servlet snoops information about the current session
and other sessions on the server.
- Try it (diabled, no longer supported on API 2.2)
- Source
|