How variables can be accessed across the sessions?

Answers were Sorted based on User's Feedback



How variables can be accessed across the sessions?..

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

How variables can be accessed across the sessions?..

Answer / anji

Store the variable in the session.

Is This Answer Correct ?    1 Yes 1 No

How variables can be accessed across the sessions?..

Answer / niranjanravi

through session context interface

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Servlets Interview Questions

What is api in servlet?

0 Answers  


What are setSecure() and getSecure() methods in Cookies?

1 Answers  


What are sessions in servlets?

0 Answers  


How do servlets work?

0 Answers  


What is http servlet in java?

0 Answers  






What must be implemented by all servlets?

0 Answers  


What is a servlet engine?

0 Answers  


If my browser does not support cookie, and my server sends a cookie instance what will happen?

0 Answers  


how can we execute servelt? what the use ".war" or ".jar" file creation

3 Answers   CTS,


Why doesn’t a servlet include main()?

0 Answers  


Can you send an authentication error from a servlet?

0 Answers  


How the typical servlet code look like ?

0 Answers  


Categories