Session in java


HTTP is a stateless protocol..

Means it consider every request independent as it deal it separately. So to keep track of a Clint. Server put little notes on Clint side.

So when the clint revisited the site server reads that note from the browser and response that clint accordingly. 

So to remember that we use the following solution.

In java servlet use HttpSession for identifying user  across different web servlet pages
There are many ways to maintain server session

Like using cookie,rewriting URL,hidden field

link

0 comments:

Post a Comment

My Instagram