Cookie invalidation or expiration by a switch
AssigneeBrocade Communications Systems, Inc.
InventorRui Li
Life of this patent
Estimating the term…
Abstract
A switch may be used to force the expiration of a cookie on a user's system by inserting an expiration field into the cookie contained in a network response packet. Additionally, a mechanism is provided to delete or damage a cookie contained in a network request packet, so that server software is not disrupted by the receipt of a cookie. Deleting a cookie results in a cleaner request, but damaging a cookie may be more efficient in certain circumstances. By providing these features, an efficient cookie switching design is provided.
Claims34
A computer implemented method comprising:
- at a network device configured to perform packet switching,
- swapping a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet;
- and
- swapping a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet.
A computer implemented method comprising:
- at a network device configured to perform packet switching,
- swapping a first odd byte/even byte pair of a cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of a header of a network request packet;
- and
- swapping a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet.
A computer implemented method comprising:
- at a network switch configured to perform packet switching,
- swapping a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet and if the cookie is an only cookie in a cookie header in the network request packet;
- swapping a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is the only cookie in a cookie header in the network request packet;
- swapping a first odd byte/even byte pair of the cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet;
- and
- swapping a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet.
A computer implemented method comprising:
- at a network device configured to perform packet switching,
- swapping a first odd byte/even byte pair of a header name with a second odd byte/even byte pair of the header name if the header name begins at an even byte from a beginning point of a header of a network packet;
- and
- swapping a first even byte/odd byte pair of the header name with a second even byte/odd byte pair of the header name if the header name begins at an odd byte from a beginning point of the header of the network packet.
An apparatus comprising:
- a memory;
- and
- one or more processors configured to:
- swap a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet;
- and
- swap a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet.
An apparatus comprising:
- a memory;
- and
- one or more processors configured to:
- swap a first odd byte/even byte pair of a cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of a header of a network request packet;
- and
- swap a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet.
An apparatus comprising:
- a memory;
- and
- one or more processors configured to:
- swap a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet and if the cookie is an only cookie in a cookie header in the network request packet;
- swap a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is the only cookie in a cookie header in the network request packet;
- swap a first odd byte/even byte pair of the cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet;
- and
- swap a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet.
An apparatus comprising:
- a memory;
- means for swapping a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet;
- and
- means for swapping a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet.
An apparatus comprising:
- a memory;
- means for swapping a first odd byte/even byte pair of a cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of a header of a network request packet;
- and
- means for swapping a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet.
An apparatus comprising:
- a memory;
- means for swapping a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet and if the cookie is an only cookie in a cookie header in the network request packet;
- means for swapping a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is the only cookie in a cookie header in the network request packet;
- means for swapping a first odd byte/even byte pair of the cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet;
- and
- means for swapping a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet.
An apparatus comprising:
- a memory;
- means for swapping a first odd byte/even byte pair of a header name with a second odd byte/even byte pair of the header name if the header name begins at an even byte from a beginning point of a header of a network packet;
- and
- means for swapping a first even byte/odd byte pair of the header name with a second even byte/odd byte pair of the header name if the header name begins at an odd byte from a beginning point of the header of the network packet.
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method, the method comprising:
- at a network device configured to perform packet switching,
- swapping a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet;
- and
- swapping a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet.
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method the method comprising:
- at a network device configured to perform packet switching,
- swapping a first odd byte/even byte pair of a cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of a header of a network request packet;
- and
- swapping a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet.
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method, the method comprising:
- at a network switch configured to perform packet switching,
- swapping a first odd byte/even byte pair of a cookie header name with a second odd byte/even byte pair of the cookie header name if the cookie header name begins at an even byte from a beginning point of a header of a network request packet and if the cookie is an only cookie in a cookie header in the network request packet;
- swapping a first even byte/odd byte pair of the cookie header name with a second even byte/odd byte pair of the cookie header name if the cookie header name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is the only cookie in a cookie header in the network request packet;
- swapping a first odd byte/even byte pair of the cookie name with a second odd byte/even byte pair of the cookie name if the cookie name begins at an even byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet;
- and
- swapping a first even byte/odd byte pair of the cookie name with a second even byte/odd byte pair of the cookie name if the cookie name begins at an odd byte from a beginning point of the header of the network request packet and if the cookie is one of a plurality of cookies in the network request packet.
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method, the method comprising:
- at a network device configured to perform packet switching,
- swapping a first odd byte/even byte pair of a header name with a second odd byte/even byte pair of the header name if the header name begins at an even byte from a beginning point of a header of a network packet;
- and
- swapping a first even byte/odd byte pair of the header name with a second even byte/odd byte pair of the header name if the header name begins at an odd byte from a beginning point of the header of the network packet.
Dependencies are inferred from the claim text.