HTTP Session: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* How can I disable session creation for RESTEasy application? https://access.redhat.com/solutions/1290373
=Internal=
=Internal=


Line 8: Line 12:
HTTP is a stateless protocol and maintaining a conversational state of the server is not directly supported by the protocol. HTTP provides no build-in way for a server to recognize that a sequence of requests originate from the same user. Since CGI, developers have been using various techinques to track the session: user authentication, hidden form fields, URL rewriting and persistent cookies. The servlet API brings improved support for session tracking. The support is built in top of the traditional techniques and it simplifies the task of session tracking in your servlets.
HTTP is a stateless protocol and maintaining a conversational state of the server is not directly supported by the protocol. HTTP provides no build-in way for a server to recognize that a sequence of requests originate from the same user. Since CGI, developers have been using various techinques to track the session: user authentication, hidden form fields, URL rewriting and persistent cookies. The servlet API brings improved support for session tracking. The support is built in top of the traditional techniques and it simplifies the task of session tracking in your servlets.


=Example=
=Subjects=


<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
* [[Methods to Maintain a HTTP Session]]
:A HTTP Session Servlet https://github.com/NovaOrdis/playground/tree/master/jee/servlet/session-servlet
* [[Servlet Session Tracking API]]
</blockquote>
* [[HTTP Session Timeout]]
* [[HTTP Session Replication]]
* [[HTTP Session Passivation]]
* [[JBossWeb/Tomcat HTTP Session Implementation Details]]
* [[JBoss HTTP Session Troubleshooting]]
* [[Curl#Simulation_of_a_HTTP_Session_JSessionID|Simulation of a HTTP Session with curl]]


=Methods to Maintain a HTTP Session=
=Example=
 
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[Methods to Maintain a HTTP Session]]
</blockquote>
 
=Servlet Session Tracking API=
 
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[Servlet Session Tracking API]]
</blockquote>
 
=Session Implementation Details=


<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
{{Internal|Session Servlet Example|Session Servlet Example}}
:[[JBossWeb/Tomcat HTTP Session Implementation Details]]
</blockquote>

Latest revision as of 20:37, 7 February 2018

External

Internal

Overview

HTTP is a stateless protocol and maintaining a conversational state of the server is not directly supported by the protocol. HTTP provides no build-in way for a server to recognize that a sequence of requests originate from the same user. Since CGI, developers have been using various techinques to track the session: user authentication, hidden form fields, URL rewriting and persistent cookies. The servlet API brings improved support for session tracking. The support is built in top of the traditional techniques and it simplifies the task of session tracking in your servlets.

Subjects

Example

Session Servlet Example