1) By default only cookies will be used. Some servers need to to be configured to allow URL rewriting. Hidden fields are not supported by default, and I have never seen them used in Java.
2) If the client 'disables cookies', cookie based sessions may or may not work depending on what they allow. By default session cookies are stored in-memory and not written to the hard drive. In some cases these in-memory cookies will still be allowed but persistent cookies will not.
3) by default sessions use cookies.
Thennam Pandian
Ranch Hand
Joined: Oct 11, 2005
Posts: 163
posted
0
Hi,
Thank you for your reply.
if the cookies are stored in server side memory, how the server will recognize the request( whether is it a new request or a old request?)
Cookies are never stored on the server. They are always stored on the client.
Session data is stored on the server. The only thing stored in the cookie is the sessionID. This, to answer your question, is how the server knows which client initiated each request and is used to match up the client with their session. [ May 02, 2008: Message edited by: Ben Souther ]