Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sessions  RSS feed

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt with respect to sessions.I would like to know if a user request for a url for the first time, the server would generate the sessionID and would set the sessionID in the response header.If the browser supports cookies, will the sessionID be automatically stored in cookies.For the next subsequent request from the same user will be cookie be retrieved automatically and send along with the request.
In the client machine after accessing an url a text file with the loginid gets stored in a folder called cookies.How that text file with the user information is used implicitly.Bcos programatically i don't think the information present in the text file is used up.
If my browser doesn't support cookies then if i use urlEncoding will the sessionID be automatically appended to the URL.
My main doubt is will the sessionID automatically gets generated at the server side.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!