JavaEE Servlet and JSP A to Z <<< by jps sasadara >>>






















Cookie
  1. Cookie will create on Browser.
Session  
  1. Unique Session will be created for each browser if application has session object.
  2. Create on Server.
  3. Pass session id to the browser’s session scope.
  4. Browser will keep session id in browser’s session scope.
  5. When browser is closed session will be closed.
Request and Response object
  1. Request and Response objects are created for each http request and response.
Servlet
  1. One servlet object will create different thread will be used to access for servlet for different users.( But session objects will be created for each Users (for each Browser))
Context

  1. Can be accessed for every user (every Browser)









































HTTP is a stateless protocol  

Because a stateless protocol does not require the server to retain session information or status about each communications partner for the duration of multiple requests. HTTP is a stateless protocol, which means that the connection between the browser and the server is lost once the transaction ends.
              .


example VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV look                                                                                                     
https://www.javaguides.net/2019/03/jsp-servlet-jdbc-mysql-crud-example-tutorial.html
   
__ JPS SASADARA__




Comments

Popular posts from this blog

Hibernate (Java) -- by jps sasadara

Observer Design Pattern & RxJava & @Async

JAVA uml Based cording <<< by jps sasadara >>>