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
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 297 of 306    Print  
What is the difference between http session and application session?

  
Total Answers and Comments: 8 Last Update: August 07, 2008     Asked by: shireesha 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 10, 2007 07:24:35   #1  
srs412 Member Since: December 2007   Contribution: 1    

RE: What is the difference between http session and application session?
I haven't heard about Application Session. Do you want to ask the difference between Session scope and Application Scope or I am unknown to Application Session. Please Make it clear.

Thanks,

 
Is this answer useful? Yes | No
March 10, 2008 03:51:20   #2  
bharaniprasanth Member Since: February 2008   Contribution: 46    

RE: What is the difference between http session and application session?
HttpSession is the interface which will be implemented by your class and is one of the four ways of achieving session management. (cookies, url rewriting, hidden fields being other three). Application is like you can use it as a storage place so that different applications within the same container can talk to each other...Hope I am correct...
 
Is this answer useful? Yes | No
June 11, 2008 04:15:50   #3  
pradeepkmr18 Member Since: June 2008   Contribution: 25    

RE: What is the difference between http session and application session?
There is no applicationsession as per my knowledge.

HttpSession is an interface and it is used as one of session tracking mechanism.

 
Is this answer useful? Yes | No
July 28, 2008 07:58:25   #4  
mullangi13 Member Since: March 2007   Contribution: 9    

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

One correction in your answer. HttpSession will be implemented by server (either it may be WebServer or ApplicationServer) vendors.

bye
Mulls

 
Is this answer useful? Yes | No
July 28, 2008 08:22:26   #5  
mullangi13 Member Since: March 2007   Contribution: 9    

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



 
Is this answer useful? Yes | No
July 29, 2008 03:56:20   #6  
konnipati.sivaa Member Since: October 2007   Contribution: 6    

RE: What is the difference between http session and application session?
The HTTP session is a interface of javax.servlet.http,The servlet container uses this interface to create a session between an HTTP client and an HTTP server. A session usually corresponds to one user, who may visit a site many times. The server can maintain a session in many ways such as using cookies or rewriting URLs.

from
konnipati.sivakumar

 
Is this answer useful? Yes | No
August 06, 2008 04:55:48   #7  
vinayroz Member Since: August 2008   Contribution: 3    

RE: What is the difference between http session and application session?
There is nothing like application session. In simple words we can take it as how we manage session in our application, so that is by HttpSession interface or by Url rewriting, hidden fields and cookies.
 
Is this answer useful? Yes | No
August 06, 2008 23:11:35   #8  
bh2008 Member Since: June 2008   Contribution: 2    

RE: What is the difference between http session and application session?
HttpSession is logged is user specific. You can't access across the users.
But application session (static) variables can be accessed across the users in the application.

HttpSession variable life time depends on the httpsession inactive time set in the server.
But static variables will be in the application memory as long as you are not setting the value as null and application is running.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape