How we can check in particular page the session will be
alive or not

Answer Posted / aseet padhi

U can use request.getSession(false); method in
HttpServletRequest interface.It returns the HttpSession
associated with this request or null if the request has no
valid session.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by url pattern in servlet?

799


What is difference between cookies and httpsession?

752


What's the architecture of a servlet package?

718


What is servlet and list its types?

737


What are the new features added to servlet 2.5?

802






Write all the phases defined in servlet life cycle?

745


How many servlet objects are created?

745


Explain the servlet filter.

700


How can we perform any action at the time of deploying the project?

848


What are the ways to handle multi-threading in servlets?

795


What is the difference between the include() and forward() methods?

777


What are the annotations used in servlet 3?

743


How does tomcat servlet container work?

786


Explain url encoding in servlet?

771


How servlet is created?

755