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

Difference between httpservlet and generic servlets?

602


Which method of the httpservletrequest object is used?

561


What if you need to span your transaction across multiple servlet invocations?

575


Explain their methods? Tell me their parameter names also have you used threads in servlet?

581


How to generate the server side programming and the advantages of it over the other languages?

557






How do you invoke a servelt?

620


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

1815


What is the disadvantage of cookies?

572


Can servlet have a constructor ?

595


Which event is fired at the time of setting, getting or removing attribute from application scope?

608


What is the dispatcher servlet?

512


What do you mean by the servlet chaining?

544


what is servlet chaining?

621


What are the types of servlets? Explain

671


What are the types of protocols supported by httpservlet ?

704