QuestionQ91

VerifiedIdentify and Resolve LTM Device Issues

An LTM Specialist has configured a virtual server for www.example.com that load-balances connections to a pool of application servers providing a shopping-cart application. Cookie persistence is enabled on the virtual server. Users can connect to the application, but their shopping carts fail to update. A traffic capture shows the following:

Request:

GET /cart/updatecart.php HTTP/1.1  
Host: www.example.com -  
Connection: keep-alive -  
Cache-Control: max-age=0 -  
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8  
Accept-EncodinG. gzip,deflate,sdch  
Accept-LanguagE. en-US,en;q=0.8 -  
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3  
CookiE. BIGipServerwebstore_pool=353636524.20480.0000  

Response:

HTTP/1.1 200 OK -  
DatE. Wed, 24 Oct 2012 18:00:13 GMT  
Server: Apache/2.2.22 (Ubuntu)  
X-Powered-By: PHP/5.3.10-1ubuntu3.1  
Set-CookiE. cartID=647A5EA6657828C69DB8188981CB5; path=/; domain=wb01.example.com  
Keep-AlivE. timeout=5, max=100 -  
Connection: Keep-Alive -  
Content-TypE. text/html -  

No changes can be made to the application. What should the LTM Specialist do to resolve the issue?

Explanation

The cartID application cookie is scoped to wb01.example.com, but users access www.example.com; therefore, the browser does not send cartID on later requests to the public host. Rewriting the response cookie’s Domain attribute to the public domain makes the application session cookie available to the client requests while retaining the existing pool-member persistence. F5 documents that HTTP::cookie domain can query or modify a cookie’s domain attribute in an iRule.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!