previous
|
start
|
next
Session Tracking
A session is a sequence of page requests from the same browser to the same web server
To track a session in a sequence of JSP pages, use a bean with session scope
<jsp:useBean id="cart" class="ShoppingCartBean" scope="session"/>
The user requests the JSP page containing this directive for the first time
A new cart object is constructed
The user returns to the same page or visits another page in the same application
The
cart
object is still alive
If the bean directive has no
scope
attribute
The bean object has
page scope
A new object is created every time the page is visited
previous
|
start
|
next