Hi,
What is the common mechanisms used for session tracking?
Thanks in advance.
GunPoint
Hi,
What is the common mechanisms used for session tracking?
Thanks in advance.
GunPoint
Here are the common mechanisms used for session tracking.
Cookies
SSL Sessions
and URL Rewriting.
Session tracking
Session tracking (for those who haven't heard of it) is a concept which allows you to maintain a relation between 2 successive requests made to a server on the Internet. Whenever a user browses any website, he uses HTTP (the underlying protocol) for all the data transfers taking place. This ofcourse is not important to the user. But it is for you as a programmer. HTTP is a stateless protocol. When a user requests for a page the server returns that web page to the user. When the user once again clicks on a new link the server once again sends the new page that was requested. The server (because of the use of HTTP as the underlying protocol) has no idea that these 2 successive requests have come from the same user. The server is not at all bothered about who is asking for the pages. All it does it return the page that has been requested. This is exactly what stateless means. There is no connection between 2 successive requests on the Internet.
Please go through this PDF file on Session tracking.
http://www.javapassion.com/j2ee/SessionTracking.pdf
I hope this helps you.
Session
A Session refers to all the request that a single client makes to a server. A session is specific to the user and for each user a new session is created to track all the request from that user. Every user has a separate session and separate session variable is associated with that session. In case of web applications the default time-out value for session variable is 20 minutes, which can be changed as per the requirement.
HTTP is stateless protocol and it does not maintain the client state. But there exist a mechanism called "Session Tracking" which helps the servers to maintain the state to track the series of requests from the same user across some period of time.
Session Tracking
HTTP is stateless protocol and it does not maintain the client state. But there exist a mechanism called "Session Tracking" which helps the servers to maintain the state to track the series of requests from the same user across some period of time.
Mechanism for Session Tracking are:
- Cookies
- URL rewriting
- Hidden form fields
- SSL Sessions
I hope this helps you.
Bookmarks