JSP and session 2 : Session « JSP « Java

JSP and session 2

<title>The Session Object</title>

<h1>The Session Object</h1>
Here are some properties of your session object.
<br>The session was created at <%= session.getCreationTime() %>
<br>The session has an inactive interval of <%= session.getMaxInactiveInterval() %>
<br>The session id is <%= session.getId() %>



<title>Log out</title>
<h1>Log Out Page</h1>
if (session != null) {
You are now logged out. Bye


Related examples in the same category

1.JSP: display a session info
2.JSP Session Parameter Rewrite
3.JSP New Session Parameter
4.Jsp Session Cart
5.Use Session Jsp
6.Jsp Using Bean Scope Session
7.Print the request headers and the session attributes
8.Using Sessions to Track Users
9.Sessions disabled
10.Duplicated session varaibles
11.JSP: view session
12.JSP and session
13.JSP session counter