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 advantages do servlets have over CGI programs?

5 Answers  


What is the directory structure of web application?

0 Answers  


What do you mean by cgi and what are its drawbacks?

0 Answers  


How threads are implemented in servlets?

3 Answers  


Who is responsible to create the object of servlet?

0 Answers  


Explain the difference between servletconfig and servletcontext in servlet?

0 Answers  


How can I share objects across different sessions?

2 Answers   Accenture,


What is the difference between 2 types of servlets?

0 Answers  


How will two or three servlets interact or communicate with each other?

0 Answers  


Differentiate between the get and post method

0 Answers  


What are the advantages of servlets over traditional cgi?

0 Answers  


What is the use of servlet wrapper classes?

0 Answers  


Categories