Cookie invalidation or expiration by a switch
View Patent ↗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.
1. A method comprising:
at a network device configured to perform packet switching, calculating a last calculated time at a fixed interval comprising a fixed number of seconds, the last calculated time indicating when a cookie should expire according to a local clock that was synchronized with a global clock;
inserting into a cookie, an expiration field indicating the last calculated time; and
placing the cookie into a network response packet.
2. The method of claim 1 wherein the global clock is a source of Network Time Protocol (NTP) signals.
3. The method of claim 2 , further comprising forwarding the network response packet toward a user's system.
4. The method of claim 1 wherein the expiration field indicates a time that has already passed if it is desired that a previously stored cookie on a user's system be invalidated.
5. The method of claim 4 wherein a cookie value for the cookie is empty if it is desired that a previously stored cookie on a user's system be invalidated.
6. The method of claim 1 wherein the last calculated time indicates an absolute time.
7. The method of claim 1 wherein the fixed number of seconds is less than one second.
8. The method of claim 1 wherein the fixed number of seconds is more than one second.
9. The method of claim 1 wherein the fixed number of seconds is one second.
10. An apparatus comprising:
a memory; and
one or more processors configured to:
calculate a last calculated time at a fixed interval comprising a fixed number of seconds, the last calculated time indicating when a cookie should expire according to a local clock that was synchronized with a global clock, the apparatus configured to perform packet switching;
insert into a cookie, an expiration field indicating the last calculated time; and
place the cookie into a network response packet.
11. The apparatus of claim 10 wherein the global clock is a source of Network Time Protocol (NTP) signals.
12. The apparatus of claim 11 wherein the one or more processors are further configured to forward the network response packet toward a user's system.
13. The apparatus of claim 10 wherein the expiration field indicates a time that has already passed if it is desired that a previously stored cookie on a user's system be invalidated.
14. The apparatus of claim 13 wherein a cookie value for the cookie is empty if it is desired that a previously stored cookie on a user's system be invalidated.
15. The apparatus of claim 10 wherein the last calculated time indicates an absolute time.
16. The apparatus of claim 10 wherein the fixed number of seconds is less than one second.
17. The apparatus of claim 10 wherein the fixed number of seconds is more than one second.
18. The apparatus of claim 10 wherein the fixed number of seconds is one second.
19. An apparatus comprising:
means for, at a network device configured to perform packet switching, calculating a last calculated time at a fixed interval comprising a fixed number of seconds, the last calculated time indicating when a cookie should expire according to a local clock that was synchronized with a global clock;
means for inserting into a cookie, an expiration field indicating the last calculated time; and
means for placing the cookie into a network response packet.
20. A program storage device readable by a machine, 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, calculating a last calculated time at a fixed interval comprising a fixed number of seconds, the last calculated time indicating when a cookie should expire according to a local clock that was synchronized with a global clock;
inserting into a cookie, an expiration field indicating the last calculated time; and
placing the cookie into a network response packet.