GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  JSP

 Print  |  
Question:  What is the difference between http session and application session?



July 07, 2008 08:22:26 #5
 mullangi13 J2EE Expert  Member Since: March 2007    Total Comments: 6 

RE: What is the difference between http session and application session?
 

There is no seperate http session and application session.


There is one interface,HttpSession which will be implemented by server vendors.


There is one scope attribute to pass data between two web resources(servlet/jsp). The possible values to this attribute are page,request,session,application.


Application-scoped variables are visible to every page of the web application, all the time.It represents the ServletContext.


and


Session-scoped variables exist only for a single-user session, but they are visible to every page in that session. Session represents HTTPSession object.


bye........

Mulls


     

 

Back To Question