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

How we can create war file in servlet?

660


How is an application exception handling is done using a servlet?

539


What is the default http method in the servlet?

766


What is difference between jsp and servlet?

644


What are the types of servlets? Explain

672






What is difference between get and post method?

572


What is Client-Server Computing?

1897


What are the functions of an intercepting filter?

488


Are Servlets Thread Safe? How to achieve thread safety in servlets?

557


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

595


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

900


How do we share data using 'getservletcontext ()?

541


What is the need of servlet filters?

538


What is difference between cookies and httpsession?

544


Where do you define dispatcherservlet?

552