# US 8,578,462 B2 · Method and system for secure session management in a web farm

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,578,462 B2
- Document ID: US8578462B2
- Status: Granted
- Kind: B2
- Application number: 10/733,326
- Filed: 2003-12-12
- Published: 2005-06-16
- Granted: 2013-11-05
- Earliest claimed: 2003-12-12
- Assignees: Avaya Inc.
- Applicants: Sladjana Petrovic
- Inventors: Sladjana Petrovic
- Web page: https://patentgrep.com/patent/US8578462B2

## CPC

- H04L 9/3213: {using tickets or tokens, e.g. Kerberos (network architectures or network communication protocols for entities authentication using tickets in a packet data network H04L63/0807)}
- H04L 9/3297: {involving time stamps, e.g. generation of time stamps}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/0807: {using tickets, e.g. Kerberos (cryptographic mechanisms or cryptographic arrangements for entity authentication using tickets or tokens H04L9/3213)}
- H04L 63/0846: {using time-dependent-passwords, e.g. periodically changing passwords}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/1001: for accessing one among a plurality of replicated servers
- H04L 67/142: Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
- H04L 2209/68: Special signature format, e.g. XML format
- H04L 2463/121: Timestamp
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and method for secure session management in a web farm using a session token. A session management web service updates the session token with each request received from a browser. If the request must be redirected to a new server where the requested resource is located, then the decrypted session token is transmitted to the new server and the session management web service generates a new session token to be used in place of the previous session token. The new session token is transmitted to the browser with the requested web resource.

## Claims

### Claim 1

A method of secure session management for a web farm, the web farm including a first server and a second server, the second server having a requested web page, the method comprising:
at the first server:
receiving a request for the requested web page from a browser, said request including an encrypted session token associated with a session;
decrypting said encrypted session token at the first server to obtain a session ID and a timestamp;
transmitting a redirect message, said redirect message prompting transmission of said request to the second server;
in conjunction with said transmitting said redirect message, transmitting said session ID and said timestamp directly to the second server;
at the second server:
receiving said request;
receiving said session ID and said timestamp from
said first server;
verifying said session;
generating a new session ID;
updating the timestamp to produce an updated timestamp;
creating a new session token, wherein the new session token includes the new session ID and the updated timestamp;
encrypting the new session token to produce a new encrypted session token; and
transmitting a response to the browser from the second server, wherein the response includes the new encrypted session token.

### Claim 2 (depends on 1)

The method claimed in claim 1, further including updating a common session database by replacing said session ID and said timestamp with said new session token in said common session database.

### Claim 3 (depends on 1)

The method claimed in claim 1, wherein a common session database contains a stored session ID and a stored timestamp, and wherein said verifying includes comparing said session ID and said timestamp with said stored session ID and said stored timestamp.

### Claim 4 (depends on 1)

The method claimed in claim 1, further including determining whether said session has timed out, said step of determining including determining an elapsed time between said timestamp and a current server time, and comparing said elapsed time with a predetermined maximum time to determine whether said session has timed out.

### Claim 5 (depends on 4)

The method claimed in claim 4, including closing said session if said session has timed out.

### Claim 6 (depends on 1)

The method claimed in claim 1, wherein said transmitting includes incorporating said session ID and said timestamp into a URL.

### Claim 7 (depends on 1)

The method claimed in claim 1, wherein a session management web service performs said verifying, said session management web service being accessible to said first server and said second server, and wherein said verifying includes comparing said session ID and said timestamp with stored session data.

### Claim 8 (depends on 7)

The method claimed in claim 7, wherein the web farm further includes a common session database containing said stored session data.

### Claim 9 (depends on 1)

The method claimed in claim 1, wherein said requested web page includes a web resource selected from the group including an applet, an HTML page, a Java server page, and an Active server page.

### Claim 10

A system for secure session management, the system being coupled to a network and receiving a request for a requested web page from a browser via the network, the request including an encrypted session token, the system comprising:
a first server including a memory and a first request handler adapted to:
receive the request; and
decrypt the encrypted session token to produce a session ID and a timestamp;
a second server including the requested web page;
a common session database including stored session data; and
a session management web service, accessible to said first server and said second server and including:
a validation component for comparing said session ID and said timestamp with said stored session data;
a token generator adapted to:
generate a new session ID;
update the timestamp, based upon a current server time, to produce an updated timestamp; and
create a new session token for the second server, wherein the new session token includes the new session ID and the updated timestamp;
the second server including a second request handler adapted to:
encrypt the new session token to produce a new encrypted session token; and
transmit a response to the browser, wherein the response includes the new encrypted session token;
said first request handler adapted to:
transmit a redirect message, the redirect message prompting transmission of said request to said second server; and
transmit the session ID and said timestamp directly to said second server.

### Claim 11 (depends on 10)

The system claimed in claim 10, wherein said session management web service replaces said session ID and said timestamp within said common session database with said new session token.

### Claim 12 (depends on 10)

The system claimed in claim 10, wherein said stored session data includes a stored session ID and a stored timestamp, and wherein said validation component compares said session ID and said timestamp with said stored session ID and said stored timestamp.

### Claim 13 (depends on 10)

The system claimed in claim 10, wherein said validation component further determines an elapsed time between said timestamp and a current server time, and compares said elapsed time with a predetermined maximum time to determine whether a session has timed out.

### Claim 14 (depends on 10)

The system claimed in claim 10, wherein said session management web service closes said session if said validation component indicates said session has timed out.

### Claim 15 (depends on 10)

The system claimed in claim 10, wherein said first request handler incorporates said session ID and said timestamp into a URL in order to transmit said session token to said second server.

### Claim 16 (depends on 10)

The system claimed in claim 10, wherein the requested web page includes a web resource selected from the group including an applet, an HTML page, a Java server page, and an Active server page.

### Claim 17

A non-transitory computer program product having a computer-readable medium tangibly embodying computer executable instructions for secure session management for a web farm, the web farm including a first server and a second server, the second server having a requested web page, the computer executable instructions including:
computer executable instructions causing the first server to:
receive a request for the requested web page from a browser, said request including an encrypted session token associated with a session; decrypt the encrypted session token to obtain a session ID and a timestamp;
transmit a redirect message, said redirect message prompting transmission of said request to the second server;
transmit the session ID and said timestamp directly to the second server;
computer executable instructions causing the second server to:
receive said request;
receive the session ID and said timestamp from said first server;
verify the session;
generate a new session ID;
update the timestamp to produce an updated timestamp;
create a new session token, wherein the new session token includes the new session ID and the updated timestamp;
encrypt the new session token to produce a new encrypted session token; and
transmit a response to the browser, wherein the response includes the new encrypted session token.

### Claim 18 (depends on 17)

The non-transitory computer program product claimed in claim 17, wherein the computer executable instructions further cause the second server to update a common session database by replacing said session ID and said timestamp with said new session token in said common session database.

### Claim 19 (depends on 17)

The non-transitory computer program product claimed in claim 17, wherein a common session database contains a stored session ID and a stored timestamp, and wherein said computer executable instructions further cause the second server to compare the session ID and said timestamp with said stored session ID and said stored timestamp.

### Claim 20 (depends on 17)

The non-transitory computer program product claimed in claim 17, wherein the computer executable instructions further cause the second server to determine whether said session has timed out by determining an elapsed time between said timestamp and a current server time, and comparing said elapsed time with a predetermined maximum time to determine whether said session has timed out.

### Claim 21 (depends on 20)

The non-transitory computer program product claimed in claim 20, wherein the computer executable instructions further cause the second server to close the session if said session has timed out.

### Claim 22 (depends on 17)

The non-transitory computer program product claimed in claim 17, wherein said computer executable instructions further cause the second server to incorporate the session ID and said timestamp into a URL.

### Claim 23 (depends on 17)

The non-transitory computer program product claimed in claim 17, wherein the computer executable instructions for verifying cause the second server to verify the session comprise a session management web service, said session management web service being accessible to said first server and said second server, and wherein said computer executable instructions further cause the second server to compare the session ID and said timestamp with stored session data.

### Claim 24 (depends on 23)

The non-transitory computer program product claimed in claim 23, wherein the web farm further includes a common session database containing said stored session data.

### Claim 25 (depends on 17)

The non-transitory computer program product claimed in claim 17, wherein said requested web page includes a web resource selected from the group including an applet, an HTML page, a Java server page, and an Active server page.
