How to add Session in JSP or Servlet page

by Vinoth 2010-01-28 11:29:56

We have to use session when we have login option and user control panel.
Here the code to add session.

session.setAttribute("user",5);


Here session is a default variable so there is no need to declare it.

Tagged in:

1139
like
0
dislike
0
mail
flag

You must LOGIN to add comments