METHOD AND SYSTEM FOR MANAGING AND USING SESSIONS AS RESTful WEB SERVICES
First Claim
1. A method of managing and using a session as a web service, the method comprising a data processor of an origin server on the Internet executing computer instructions stored on a non-transitory computer readable storage medium to perform the steps of:
- (a) responding to a user agent request to create a session by allocating data storage of the origin server to a representation of the session for storing session state information of the session, the representation of the session having an associated Uniform Resource Identifier (URI);
(b) responding to a user agent request to update session state information by finding that the user agent request to update a session includes the associated URI, and upon finding that the user agent request to update session state information includes the associated URI, updating session state information in the data storage allocated to the representation of the session created in step (a);
(c) responding to a user agent request to retrieve session state information by finding that the user agent request to retrieve session state information includes the associated URI, and upon finding that the user agent request to retrieve session state information includes the associated URI, retrieving session state information from the data storage allocated to the representation of the session created in step (a); and
(d) terminating the session by de-allocating the data storage having been allocated to the representation of the session in step (a).
18 Assignments
0 Petitions
Accused Products
Abstract
Disclosed herein are systems, methods, and non-transitory computer-readable storage media for managing and using sessions as RESTful web services. A session is exposed as a resource having an associated Uniform Resource Identifier (URI), and the session is composed with other services. For example, a client sends an HTTP POST request to a web server to create a session, an HTTP GET request to retrieve a representation of the session, an HTTP PUT request to update the representation of the session, and an HTTP DELETE request to delete the session so that resources within the session are reclaimed. Since the sessions are resources, the resources can be shared among clients, and the web servers knows the client states while still being stateless, making them robust and scalable. Composing web services with the common RESTful session service reduces complexity and enhances interoperability.
-
Citations
20 Claims
-
1. A method of managing and using a session as a web service, the method comprising a data processor of an origin server on the Internet executing computer instructions stored on a non-transitory computer readable storage medium to perform the steps of:
-
(a) responding to a user agent request to create a session by allocating data storage of the origin server to a representation of the session for storing session state information of the session, the representation of the session having an associated Uniform Resource Identifier (URI); (b) responding to a user agent request to update session state information by finding that the user agent request to update a session includes the associated URI, and upon finding that the user agent request to update session state information includes the associated URI, updating session state information in the data storage allocated to the representation of the session created in step (a); (c) responding to a user agent request to retrieve session state information by finding that the user agent request to retrieve session state information includes the associated URI, and upon finding that the user agent request to retrieve session state information includes the associated URI, retrieving session state information from the data storage allocated to the representation of the session created in step (a); and (d) terminating the session by de-allocating the data storage having been allocated to the representation of the session in step (a). - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for managing and using a session as a web service, the system comprising an origin server on the Internet, the origin server having a data processor and non-transitory computer readable storage medium coupled to the data processor and storing computer instructions that when executed by the data processor perform the steps of:
-
(a) responding to a user agent request to create a session by allocating data storage of the origin server to a representation of the session for storing session state information of the session, the representation of the session having an associated Uniform Resource Identifier (URI); (b) responding to a user agent request to update session state information by finding that the user agent request to update a session includes the associated URI, and upon finding that the user agent request to update session state information includes the associated URI, updating session state information in the data storage allocated to the representation of the session created in step (a); (c) responding to a user agent request to retrieve session state information by finding that the user agent request to retrieve session state information includes the associated URI, and upon finding that the user agent request to retrieve session state information includes the associated URI, retrieving session state information from the data storage allocated to the representation of the session created in step (a); and (d) terminating the session by de-allocating the data storage having been allocated to the representation of the session in step (a). - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable storage medium storing computer instructions that, when executed by a data processor of an origin server on the Internet, perform management of a session as a web service by the steps of:
-
(a) responding to a user agent request to create a session by allocating data storage of the origin server to a representation of the session for storing session state information of the session, the representation of the session having an associated Uniform Resource Identifier (URI); (b) responding to a user agent request to update session state information by finding that the user agent request to update a session includes the associated URI, and upon finding that the user agent request to update session state information includes the associated URI, updating session state information in the data storage allocated to the representation of the session created in step (a); (c) responding to a user agent request to retrieve session state information by finding that the user agent request to retrieve session state information includes the associated URI, and upon finding that the user agent request to retrieve session state information includes the associated URI, retrieving session state information from the data storage allocated to the representation of the session created in step (a); and (d) terminating the session by de-allocating the data storage having been allocated to the representation of the session in step (a). - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification