Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

need help: confused with session

 
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.
 
Rancher
Posts: 43016
76
  • 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: 43016
76
  • 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.
 
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.
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic