Re: how to handle cookies in jsp
Posted By:
Anonymous
Posted On:
Thursday, April 21, 2005 04:17 AM
Its always good practise using HttpSessions and this paragraph will answer your question:
Servlets provide an outstanding technical solution for Session Tracking: the HttpSession API. This high-level interface is built on top of cookies or URL-rewriting. In fact, most servers use cookies if the browser supports them, but automatically revert to URL-rewriting when cookies are unsupported or explicitly disabled. But, the servlet author doesnt need to bother with many of the details, doesnt have to explicitly manipulate cookies or information appended to the URL, and is automatically given a convenient place to store arbitrary objects that are associated with each session.
cheers, -K.