June 2005
Beginner to intermediate
336 pages
6h 29m
English
Online programs are by default stateless—that is, when you load a page a number of times in succession, the data in the page is reinitialized each time. If you want to track, say, the number of times the user has accessed the page, you need to specifically store that data somewhere.
In a standard desktop program, where you're interacting with the user while the program is running, you can store data in variables. That data won't be reset to its default values the next time you look at it. Using JSP sessions, you actually can do the same thing in JSP—you can interact with the user as part of a “session.”
While the session is active, you can store data in it, and that data will be preserved on the server ...
Read now
Unlock full access