how to handle cookies in jsp
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rupa_bhasme
Posted On:   Wednesday, April 20, 2005 11:18 PM

			in my project i used
			
httpSession getSession method to get session whether it is true or false,

i got info, but i haven't used cookee,
url rewriting or hidden forms then whether it will be session mgmt
if not then tell me how to use cookies for session mgmt.

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 doesn’t need to bother with many of the details, doesn’t 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.
About | Sitemap | Contact