ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Servlets
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1728)
 Advanced Java interview questions  Advanced Java Interview Questions (332)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (147)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
What is HTTP Session ?
 Question Submitted By :: Servlets
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
HTTP Session mainly used for associated with HTTP Client and
HTTP sever.session will maintain the state with unque Id for
each client req.
 
Is This Answer Correct ?    58 Yes 6 No
Jayaprakash
 
Answer
# 2
Http Protocol is stateless protocol. Hence server cannot
identify the request is from same client or different.
Hence server can treat every request as new request and may
ask for authentication for each request.
Hence for server to remember client and to respond in an
interactive way server needs to remember the client and its
activities. For which javax.servlet.http.HttpSession
interface is provided. Which helps in session tracking of
client requests.
HttpSession is one of the 4 ways of session tracking
mechanisms.
 
Is This Answer Correct ?    44 Yes 3 No
Sandeep M
 
 
 
Answer
# 3
--HTTP stands for HyperText Transfer Protocol--
--Session means a period of time--
HTTP Session is mainly used for clients, to trace their
requests towards server. For each client, a unique session
will be maintain until the server gets shutdown. Each client
have separate session ID
 
Is This Answer Correct ?    15 Yes 4 No
Rajkanth
 
Answer
# 4
HTTP Session is mainly used for clients, to trace their
requests towards server. For each client, a unique session
will be maintain until the server gets shutdown. Each client
have separate session ID
 
Is This Answer Correct ?    11 Yes 3 No
Ramesh
 
Answer
# 5
HttpSession present in package "javax.servlet.http".It is
mainly used for client request it will process and it will
throgh response to client.It also maintain only client
session.
 
Is This Answer Correct ?    5 Yes 2 No
P.venkatesh
 
Answer
# 6
Http Session is an object for one Client it creates one
object ........Http Session is good for using one
application .........ServletContext is good for using one
client...ServletConfig is good for using one servlet
 
Is This Answer Correct ?    17 Yes 22 No
Sk
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
what is SSL?   2
In howmany ways applet-servlet communication can be done?   1
What is the difference between an applet and a servlet? Miracle-Solutions 15
hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz   3
Given the request path below, which are context path, servlet path and path info? /bookstore/education/index.html   1
Hi frnds iam new to Java Kindy any one can provide or me Servlets Example code and can explain to me flow of servlets and as Jsp and Struts and provide to me some sample example on these 3 topic flow,code example,and tutorials,and related websites which i can refer....thanks in advance..........   3
What is context switching?   4
Is classes folder is compulsory in web-inf/ even though u r deploying ur application with war file? Bosch 3
how can you give alias to servlets?   1
i am bca student,give me suggest for bright future BSNL 18
what are the way a client can be tracked? IBM 3
How many ways to remove the session object in the container Bosch 6
 
For more Servlets Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com