• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help: confused with session

 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session with the client and container happens using either cookies or URL Rewriting.Ok

I suppose ...
If the cookie enable client can store the session ID somewhere in the harddisk to memorise later.(I think so)

But if the client disables cookie where it store the Session ID for later use.

I am confused is it necessary to store the session ID in the clients physical storage space (hard disk) for the next request. If not how the client memorises the session ID.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not necesary to store the session ID anywhere on the client. If URL rewriting is used, then the ID is part of every URL on every page in the web app, and thus is sent every time a request is made to the server. That's what counts, not whether it is stored anywhere.
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer,Then how the client memmorise the session ID if close all browser window?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't. But the session cookie is also lost when the browser is closed, because it is not stored permanently on disk. That's the nature of sessions - they're temporary.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sessions - primarily used to maintain a 'converational' state with the
client and not to 'identify' the client/
cookies - used solely to identify the client next time he comes

hth
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
My doubt is clear now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic