Systems and methods for managing cookies via HTTP content layer
First Claim
1. A method for managing browser cookies by an intermediary between a client and server via content of an Hypertext Transfer Protocol (HTTP) message, the method comprising:
- (a) receiving, by an intermediary between a client and server, a response of the server to a request of the client, the response comprising a message body and a header, the header comprising cookie information specifying a domain and a path;
(b) removing, by the intermediary, the cookie information from the header of the response;
(c) modifying, by the intermediary, the message body of the response to include script instructions for execution by a browser of the client to set a value of the domain and the path of the cookie based on cookie information stored in a storage element, to include an identification of a Uniform Resource Locator of a script for execution by the browser to detect a change to the cookie by the browser; and
(d) forwarding, by the intermediary, the modified response to the client.
7 Assignments
0 Petitions
Accused Products
Abstract
The cookie management system and methods of the present solution address issues with rewriting cookie headers by handling cookies in the content layer of HTTP instead of the HTTP transaction layer. The present solution maintains cookie information for a browser via an intermediary and installs the correct cookie parameters in the browser via the HTTP content layer. Instead of using the headers of the HTTP transaction layer which may cause issues due to rewriting, the present solution manages the cookies outside of this layer. This avoids the browser managing the cookies incorrectly. Set cookies headers served from a server in response to client HTTP requests are removed by the intermediary. Cookie information from the headers are stored in a cookie jar on the intermediary. The intermediary delivers instructions and scripts via the content layer of the HTTP response to set the cookie in the browser. The scripts detect browser changes to the cookie and communicates the changes to the intermediary to update the cookie jar. With the present solution, the domain and path names of a cookie are set correctly on the browser when delivering content via a reverse proxy.
450 Citations
36 Claims
-
1. A method for managing browser cookies by an intermediary between a client and server via content of an Hypertext Transfer Protocol (HTTP) message, the method comprising:
-
(a) receiving, by an intermediary between a client and server, a response of the server to a request of the client, the response comprising a message body and a header, the header comprising cookie information specifying a domain and a path; (b) removing, by the intermediary, the cookie information from the header of the response; (c) modifying, by the intermediary, the message body of the response to include script instructions for execution by a browser of the client to set a value of the domain and the path of the cookie based on cookie information stored in a storage element, to include an identification of a Uniform Resource Locator of a script for execution by the browser to detect a change to the cookie by the browser; and (d) forwarding, by the intermediary, the modified response to the client. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method for managing browser cookies by an intermediary between a client and server via content of an Hypertext Transfer Protocol (HTTP) message, the method comprising:
-
(a) receiving, by an intermediary between a client and server, a response of the server to a request of the client, the response comprising a message body and a header, the header comprising cookie information specifying a domain and a path; (b) removing, by the intermediary, the cookie information from the header of the response; (c) modifying, by the intermediary, the message body of the response to include script instructions for execution by a browser of the client to set a value of the domain and the path of the cookie based on cookie information stored in a storage element and to insert instructions of a script for execution by the browser to detect a change to the cookie by the browser; and (d) forwarding, by the intermediary, the modified response to the client. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A system for managing browser cookies by an intermediary between a client and server via content of an Hypertext Transfer Protocol (HTTP) message, the system comprising:
-
a device intermediary to a client and a server; an engine executing on the device receiving a response of the server to a request of the client, the response comprising a message body and a header, the header comprising cookie information specifying a domain and a path;
wherein the engine removes the cookie information from the header of the response; and
modifies the message body of the response to include script instructions for execution by a browser of the client to set a value of the domain and the path of the cookie based on cookie information stored in a storage element, to include an identification of a Uniform Resource Locator of a script for execution by the browser to detect a change to the cookie by the browser; andwherein the device forwards the modified response to the client. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
-
-
28. A system for managing browser cookies by an intermediary between a client and server via content of an Hypertext Transfer Protocol (HTTP) message, the system comprising:
-
a device intermediary to a client and a server; an engine executing on the device receiving a response of the server to a request of the client, the response comprising a message body and a header, the header comprising cookie information specifying a domain and a path;
wherein the engine removes the cookie information from the header of the response; and
modifies the message body of the response to include script instructions for execution by a browser of the client to set a value of the domain and the path of the cookie based on cookie information stored in a storage element and to insert instructions of a script for execution by the browser to detect a change to the cookie by the browser; andwherein the device forwards the modified response to the client. - View Dependent Claims (29, 30, 31, 32, 33, 34, 35, 36)
-
Specification