A session is a short and interactive data exchange within two or more communicating devices. Or between computer and user, it’s called (login session).
According to Google Analytics, a session is represented as a group of interactions one user takes within a given time frame on your website. Google Analytics defaults that time block to 30 minutes. Meaning whatever a user takes on your website. For example browses pages, downloads resources, purchases products) before they leave equals one session. In short, the sessions metrics is a centralized way to record visited and active users.
Moreover, a session is a communication between the server and a client. A conversation consists of a series of continuous requests and responses. Session tracking methods are:
- User authorization
- Hidden fields
- URL rewriting
- Cookies
- Session tracking API
The first four techniques are traditionally used for session tracking in all the server-side technologies. The session tracking API method is given by the underlying technology (java servlet or PHP or furthermore). Session tracking API is built on top of the first four methods.