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 is the use of java servlet api?

602


Explain the servlet context.

602


How do you configure a centralized error handler in servlets?

533


Which is better jsp or servlet?

558


What’s the difference between forward() and sendredirect() methods?

575






Why do we use sendredirect() method?

550


What methodology can be followed to store more number of objects in a remote server?

1818


Write a program to show the functionality of servlets.

555


What is cgi and what are its drawbacks?

553


What is the use of servlet context?

535


How do servlets work?

536


What is the element?

590


Which method is called when reference variable is passed in system.net?

1831


Write the code to get the server information in servlet.

573


What is the structure of the http response

677