Because HTTP and Web Server are both stateless, the only method to preserve a session is for the server and client to exchange some unique information about the session (session id) in each request and response. We can provide a unique identification in request and response in a variety of methods.
The term "session" merely refers to a certain period of time. Session tracking is a method of keeping track of a user's current state (data). It's also known as servlet session management. Because the HTTP protocol is stateless, we must use session tracking mechanisms to retain state.
Hidden Form Field.
three types of session in asp.net:
out Process session.
Use the HttpServletRequest method getSession() to create a new session or obtain access to an existing one, as seen in the following example: mySession = request. getSession(); HttpSession mySession = request. getSession();