if we know the any consultancies, it will place in company
work through consultancy(contract base). please help me I'm
2008 pass out java candidate...

Answer Posted / venkat

Hi friend ,

if u use getSession(true),first the container checks the
session is avilable or not.if it exists,it uses that session
and returns that session,otherwise it creates new session

but in case of getSession(false),if the session exists for
the user,it uses that session otherwise it returns null

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between genericservlet and httpservlet

584


Explain how does JSP handle run-time exceptions?

580


How can you push data from an Applet to a Servlet?

605


Explain web application directory arrangement?

585


What is the GenericServlet class?

597






What is difference between PrintWriter and ServletOutputStream?

768


Why servlet is used as controller ? Not JSP? I want complete explation?

648


What are the mechanisms used by a servlet container for maintaining session information?

562


What are the types of Session Tracking ?

646


how many jsp scripting elements are there and what are those?

540


How to find whether a parameter exists in the request object?

668


What is servlet looping or chaining?

657


Write a hello world program using servlets.

588


Which event is fired at the time of session creation and destroy?

868


What are the different methods involved in the process of session management in servlets?

661