Friday, 4 May 2018

What is Session? Session Tracking

What is Session? Session Tracking :


what is Session:

Session simply means a particular interval of time. Session tracking is a way to maintain state of an user.each time user request to the server, server treats the request as the new request. So we need to maintain the state of an user to recognized it.
“the process that is implemented at server side to recognized the user is called session tracking”
In this process server checks url of the user and tries to get session ID from the URL. If URL does not contain session ID for the user and sends that session ID to the browser along with response.
Server also creates an object of HttpSession class to represent that session ID at server side session ID and session object is unique for user.
It user will send another request then along with request session ID will also be sent. In this case server will be able to identify the user.

No comments:

Post a comment

Popular Posts