This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between JSESSION ID, cookie and session  RSS feed

 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I don't know where to ask this J2ee Question. Sorry, because If I'm asking this question in wrong Place.

What is the difference between JSESSION ID and Session?
I red THIS blog, I got the explanation but I'm actually confused about JSESSION ID and Session..
In that blog, they told about JSESSION ID cookie. then

What is the difference between JSESSION ID and Cookie?

Please give me proper explanation.

Thanks:
Ramakrishna K.C
 
K. Tsang
Bartender
Posts: 3628
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm let see if I can explain this:

A (HTTP) session is an object that can hold conversational state across multiple requests for the same client. You can put "attributes" into this session. Each session has a unique "session ID" to determine who the client is.

Now how does the web container know what the session ID is? Through cookies.

A cookie is then an object that contains this unique session ID (apparently called JSESSIONID) and other stuff. This cookie is passed to the web container for it to identify who the client is.


Hope my explanation helps.

I'm sure Bear would have a better explanation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!