0% found this document useful (0 votes)
125 views

Session Tracking in Servlets - Javatpoint

The document discusses session tracking in servlets. It begins by explaining that HTTP is a stateless protocol so session tracking is needed to maintain the state of a user between requests. It then lists the four main techniques for session tracking: cookies, hidden form fields, URL rewriting, and HTTP session. The document provides a brief overview of why session tracking is used and these four techniques.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views

Session Tracking in Servlets - Javatpoint

The document discusses session tracking in servlets. It begins by explaining that HTTP is a stateless protocol so session tracking is needed to maintain the state of a user between requests. It then lists the four main techniques for session tracking: cookies, hidden form fields, URL rewriting, and HTTP session. The document provides a brief overview of why session tracking is used and these four techniques.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

6/13/22, 2:58 PM Session Tracking in Servlets - javatpoint

Home Core Java Servlet JSP Struts2 Mail API Hibernate Spring Android

https://www.javatpoint.com/session-tracking-in-servlets 1/5
6/13/22, 2:58 PM Session Tracking in Servlets - javatpoint

Session Tracking in Servlets


Session simply means a particular interval of time.

Session Tracking is a way to maintain state (data) of an user. It is also known as session
management in servlet.

Http protocol is a stateless so we need to maintain state using session tracking techniques.
Each time user requests to the server, server treats the request as the new request. So we need
to maintain the state of an user to recognize to particular user.

HTTP is stateless that means each request is considered as the new request. It is shown in the
figure given below:

Why use Session Tracking?

To recognize the user It is used to recognize the particular user.

Session Tracking Techniques

There are four techniques used in Session tracking:

1. Cookies
2. Hidden Form Field
3. URL Rewriting
4. HttpSession

<<Prev
Next>>

https://www.javatpoint.com/session-tracking-in-servlets 2/5
6/13/22, 2:58 PM Session Tracking in Servlets - javatpoint


For Videos Join Our Youtube Channel: Join Now

Feedback

Send your Feedback to feedback@javatpoint.com

Help Others, Please Share

Learn Latest Tutorials

Splunk SPSS Swagger Transact-SQL

Tumblr ReactJS Regex Reinforcement


Learning

R Programming RxJS React Native Python Design


Patterns

Python Pillow Python Turtle Keras

Preparation

https://www.javatpoint.com/session-tracking-in-servlets 3/5
6/13/22, 2:58 PM Session Tracking in Servlets - javatpoint

Aptitude Reasoning Verbal Ability Interview Questions

Company Questions

Trending Technologies

Artificial AWS Selenium Cloud Computing


Intelligence

Hadoop ReactJS Data Science Angular 7

Blockchain Git Machine Learning DevOps

B.Tech / MCA

DBMS Data Structures DAA Operating System

https://www.javatpoint.com/session-tracking-in-servlets 4/5
6/13/22, 2:58 PM Session Tracking in Servlets - javatpoint

Computer Network Compiler Design Computer Discrete


Organization Mathematics

Ethical Hacking Computer Graphics Software Web Technology


Engineering

Cyber Security Automata C Programming C++

Java .Net Python Programs

Control System Data Mining Data Warehouse

https://www.javatpoint.com/session-tracking-in-servlets 5/5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy