How variables can be accessed across the sessions?
Answers were Sorted based on User's Feedback
Answer / mohan
we have to set the variable in session object.like
session.setAttribute("somename",varible name);
and then we can get this variable where we want in this
session
session.getAttribute("somename");
| Is This Answer Correct ? | 2 Yes | 0 No |
What mechanisms are used by a Servlet Container to maintain session information?
What is the process for chaining servlet?
What are the different methods involved in the process of session management in servlets?
Explain url encoding?
What is difference between Forward() and sendRedirect() methode?
Why doesn’t a servlet include main()?
How to maintain security in servlets?
what is servlet life cycle?
How to get the IP address of client in servlet?
Why do we need a constructor in a servlet if we use the init method?
Which java application server is the best?
What are some disadvantages of storing session state in cookies?