I WILL BE THANKFUL IF ANYBODY EXPLAINS CONCEPT OF SESSION TRACKING,COOKIES.IF WE CREATE A SESSION USING SESSION TRACKING, IS THE USAGE OF COOKIES IS MUST?
As per my knowledge if the cookie is disabled then u need to use urlredirect so that every time ur session id will get concated with ur url & if the cookie is enabled no need of doing this.
i hope this will help u.
u could use urlrewriting and also hidden fields for the same.
http is a stateless protocol that means as soon u send a request to the browser it responds to the request that's all and does not remember anything.
for example if u r doing online shopping u will buy a item in one page and go the second page,when u go the second page u will not be able to see what u have purchased in the previous page since http is a stateless protocol.
so if u want to see what u have purchased in the first page when u go to the second we use session tracking.
so session tracking can be done in various like cookies,url rewriting,hidden form fields etc.
so basically session tracking is to remember the information what u have done earlier.
if u have any doubts mail me at lal_kiran at yahoo dot com
However, URL rewriting is prone to hacking. All I have to do is fiddle with that session ID in the URL....
...so make sure your servlet properly handles an invalid session, versus a new one.