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 do you mean by httpservlet and how it is different from the genericservlet?

0 Answers  


What do you mean by interservlet communication?

0 Answers  


what is meant by servlet to servlet communication?

1 Answers   KPIT,


What is context switching?

6 Answers  


How do you define a servlet?

0 Answers  






Can we override destroy method in servlet?

0 Answers  


What is the difference between the http servlet and generic servlet?

0 Answers  


Can you create a deadlock condition on a servlet?

0 Answers  


When should you prefer to use doget() over dopost()?

0 Answers  


Define the life cycle of a servlets.

0 Answers  


What is use of parseQueryString ?

1 Answers  


What is a servlet?

0 Answers  


Categories