cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1795
Views
0
Helpful
1
Replies

ACE Server side Cookie with path

dsimonse
Level 1
Level 1

Hi,

I have a demand for configuring serversida cookie sticky that includes a path, i.e:

/path1/cookie1

/path2/cookie2

/path3/cookie3

does it in the normal

"sticky http-cookie cookie1 websticky1"

"cookie1" take the "/path1/cookie1" into account?

Or in essence, I need to distinguish btw:

<Context sessionCookieName="PRIVJSESSIONID" sessionCookiePath="/" reloadable="false">

<Context sessionCookieName="PRIVJSESSIONID" sessionCookiePath="/priv" reloadable="false">

Regards

Dennis

Using Ace30 with 5.2(1e) and soon 5.3(0)

1 Reply 1

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi,

Sticky http cookie xxx that you have configured is for the cookie inside HTTP Header. It looks like you want the ACE to read the cookie from URL and ace can do that. Please have a look at "Secondary Cookie" option.

http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/sticky.html#wp1070440

The way this typically works is that server is configured to insert the same secondary cookie in both the "Set-Cookie" header and  HTML URI. ACE creates a sticky entry based on the Set-Cookie header of the server response. Then, when client returns with the same cookie value in the URL query, it is stuck to the same server.

"Cookie secondary" is not meant to work independently of regular cookies. It is meant to be a complementary feature for cases where the client has disabled cookies in their browser. The server is still expected to insert a standard Set-Cookie header in the response.

Regards,

Kanwal

Review Cisco Networking for a $25 gift card