Java Servlet session in Enterprise Java
Channel: BANSODE TECH SOLUTION
Date: 13/08/2021

#Java #Servlet #session in #EnterpriseJava
https://youtu.be/58ULN8w_EUs

#Introduction
#HTTP is a #stateless protocol.
#FTP is not a stateless #protocol.
The lack of state prevents a web server from uniquely identifying each visitor.
Because of HTTP’s stateless nature, a visitor who navigates through a website cannot be tracked.
Every request for information from the visitor web browsers uses a new connection from an anonymous client.


#Advantage and #Disadvantage of stateless #Nature.
Advantage
Keeps the protocol simple and straight forward
Consumes fewer resources on the web server
Can support #simultaneous visitors, as it is not required to maintain client credentials and connection.

Disadvantage
Increased overhead required creating a new connection with each request.
Inability to track a single visitor as the visitor travers a website 
The web server cannot automatically associate a browser request with a particular session

#Workarounds
#Web #application have used several techniques to get around the stateless operations of HTTP:
Client identifies itself each time it make a request and the server stores and retriever data related to that client-sessions
Server sends data to the client and forces the client to send it back with each request it makes – #cookies.

What are the Session?
Session are great  for storing temporary data about the visitors.
Session are used when the website does not want this data to be accessible  external to the #webserver.
Session and cookies share a #relationship between them.
They serve the same purpose to a limited extent and are interchangeably usable.
Session are a means to #store and #track #client #data while  they #navigate through a series of #page or page  iterations on the #website.
A session works even when a client has disabled cookies in their browser.
A session is the amount of time, which a client takes while navigating through a site.

When does an HTTP session expire?.
The duration of an HTTP session is configurable on the Webserver.
A common approach is to instruct the web server to expire any sessions that have been inactive for more than a specified amount of time.
Ex. For 30 minute.

What is this #SessionId?
SESSION #ID is a #unique #identification string usually a long, random and alpha-numeric string, which is transmitted between the client and the server.
SESSION ID are usually stored in the cookies , URLs and Hidden fields of Web pages.

PLAYLIST ENTERPRISE JAVA #PRACTICAL :-
https://youtube.com/playlist?list=PLHeKsaIQNmlql0j4MAKAE2EJ8UvtGg9xY

PLAYLIST #EJ #ENTERPRISE #JAVA #THEORY:- 
https://youtube.com/playlist?list=PLHeKsaIQNmlp14xXR1nqCH4rQCBlw2oIa

#Subscribe the Channel Link :- https://www.youtube.com/c/AjUpgradingBANSODETECHSOLUTION?sub_confirmation=1

IF any Query or Doubt DM on #Instagram :- 
https://www.instagram.com/bansode_ajay_2102?r=nametag