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 is api in servlet?
What are setSecure() and getSecure() methods in Cookies?
What are sessions in servlets?
How do servlets work?
What is http servlet in java?
What must be implemented by all servlets?
What is a servlet engine?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
how can we execute servelt? what the use ".war" or ".jar" file creation
Why doesn’t a servlet include main()?
Can you send an authentication error from a servlet?
How the typical servlet code look like ?