File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Sessions" Watch "Sessions" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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.
I agree. Here's the link:
subject: Sessions
It's not a secret anymore!