IP Library Granted Patent US 8,533,297
Granted Patent B2
US 8,533,297 · App. 13/471,914 · Granted Sep 10, 2013

Setting cookies in conjunction with phased delivery of structured documents

Inventor: Changhao Jiang (San Jose, CA)
Assignee: Facebook, Inc.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,533,297
App. No.
13/471,914
Granted
Sep 10, 2013
Kind
B2
Abstract

In one embodiment, a method includes receiving a first request from a client for a target structured document and generating the target structured document and one or more parameters for one or more state objects associated with the client. In a particular embodiment, the method includes, in a first response phase, transmitting a first portion of the target structured document to the client. In a particular embodiment, the method further includes, in a second response phase, transmitting a second portion of the target structured document that includes a code segment. The method may additionally include receiving a second request from the client sent from the client as a result of the client executing the code segment, and transmitting a response to the second request that comprises the one or more parameters for the one or more state objects.

Claims (39)

1. A method comprising:

receiving, by a computing system, a first client request for a target structured document;

generating, by the computing system, the target structured document, one or more parameters for one or more HTTPOnly cookies associated with the client, and a key to retrieve the parameters from a data structure in which the parameters are stored;

sending, by the computing system, to the client, in a first phase of a response to the first client request, all HTTP header information for the target structured document;

sending, by the computing system, in a second phase of the response to the first client request, a second portion of the target structured document, wherein the second portion of the target structured document comprises a code segment and the key;

receiving, by the computing system, a second client request comprising the key to retrieve the parameters for the HTTPOnly cookies, wherein the second client request is sent from the client as a result of the client executing the code segment;

retrieving, by the computing system, using the key, the parameters from the data structure; and

sending, by the computing system, a response to the second client request that comprises the parameters for the HTTPOnly cookies.

2. The method of claim 1 , wherein the code segment comprises a JavaScript code segment.

3. The method of claim 2 , wherein the JavaScript code segment, when executed by the client, is configured to generate an Asynchronous JavaScript+XML (AJAX) call, and wherein the second request comprises the AJAX call.

4. The method of claim 1 , wherein the parameters allow one or more client devices associated with the client to set the HTTPOnly cookies.

5. The method of claim 1 , wherein the code segment is configured to cause one or more client devices associated with the client to generate and send the second client request.

6. The method of claim 1 , wherein sending the response to the second client request comprises:

extracting, by the computing system, the key from the second client request; and

inserting, by the computing system, the retrieved parameters into the response to the second client request.

7. The method of claim 1 , wherein the first and second phases of the response to the first client request are sent to the client in one or more first Hypertext Transfer Protocol (HTTP) responses and wherein the response to the second client request is sent to the client in one or more second HTTP responses.

8. The method of claim 1 , wherein the response to the second client request comprises a third portion of the target structured document.

9. The method of claim 1 , wherein:

sending the first phase of the response to the first client request precedes generating the target structured document, the parameters, and the key;

the first phase of the response to the first client request comprises a first portion of the target structured document that comprises one or more first resources or references for one or more of the first resources; and

the method further comprises accessing, by the computing system, an entry for the target structured document and the first resources associated with the target structured document.

10. A system comprising:

one or more processors; and

a memory coupled to the processors comprising instructions executable by the processors, the processors being operable when executing the instructions to:

receive a first client request for a target structured document;

generate the target structured document, one or more parameters for one or more HTTPOnly cookies associated with the client, and a key to retrieve the parameters from a data structure in which the parameters are stored;

send, to the client, in a first phase of a response to the first client request, all HTTP header information for the target structured document;

transmit send, in a second phase of the response to the first client request, a second portion of the target structured document, wherein the second portion of the target structured document comprises a code segment and the key;

receive a second client request comprising the key to retrieve the parameters for the HTTPOnly cookies, wherein the second request is sent from the client as a result of the client executing the code segment;

retrieve, using the key, the parameters from the data structure; and

send a response to the second client request that comprises the parameters for the HTTPOnly cookies.

11. The system of claim 10 , wherein the code segment comprises a JavaScript code segment.

12. The system of claim 11 , wherein the JavaScript code segment, when executed by the client, is configured to generate an Asynchronous JavaScript +XML (AJAX) call, and wherein the second request comprises the AJAX call.

13. The system of claim 10 , wherein the parameters allow one or more client devices associated with the client to set the HTTPOnly cookies.

14. The system of claim 10 , wherein the code segment is configured to cause one or more client devices associated with the client to generate and send the second client request.

15. The system of claim 10 , wherein the processors are further operable, when executing the instructions to send the response to the second client request, to:

extract the key from the second client request; and

insert the retrieved parameters into the response to the second client request.

16. The system of claim 10 , wherein the first and second phases of the response to the first client request are sent to the client in one or more first Hypertext Transfer Protocol (HTTP) responses and wherein the response to the second client request is sent to the client in one or more second HTTP responses.

Assignments (1)
CHANGE OF NAME Recorded Dec 20, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058553/0802 →
Continuity (2)
Continuation 12638926 · Dec 15, 2009
Related Publication 20120226785A1 · Sep 6, 2012