What is the difference between http session and application session?

Showing Answers 1 - 24 of 24 Answers

srs412

  • Dec 10th, 2007
 

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,

  Was this answer useful?  Yes

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...

  Was this answer useful?  Yes

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


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

  Was this answer useful?  Yes

vinayroz

  • Aug 6th, 2008
 

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.

  Was this answer useful?  Yes

bh2008

  • Aug 6th, 2008
 

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions