Arrowpoint cookie path pointing towards double cookie problem

Answered Question
Jun 26th, 2009

We are having some website http://www.abcd.com which lands to some 4 servers p05/p06/p07/p08. After then in the same page there are links like http://www.abc.com/xyz/pdfebill on which when we click the webpage should go to the servers p09/p10/p11/p12 .

But now there is one problem The requests from the url http://www.efgh.com/xyz/pdfebill are going to the zone-acp-p05/06/07/08 servers instead of zone-azp-p09/p10/p11/p12

Arrow point-cookie is set to the url as follows for the http://www.efgh.com/xyz/pdfebill so that it points to the machines p09/p10/p11/p12 instead of the default servers p05/p06/p07/p08.

arrowpoint-cookie path "/xyz/pdfebill"

Now the problem is that the url http://www.efgh.com/xyz/pdfebill points to the machines p09/p10/p11/p12 and also p05/p06/p07/p08 as when we see into the arrowpoint cookie it is showing the address of the servers from both the groups.

How can we set the arrowpoint cookie so taht it should just get stick to the p09/p10/p11/p12 only instead of the default servers p05/p06/p07/p08.

Here is my content configuration as follows:

The configuration for the content was as follows before change:

content abcd.com

balance aca

advanced-balance arrowpoint-cookie

url "//abcd/*"

protocol tcp

port 20080

arrowpoint-cookie browser-expire

vip address 10.5.58.22

add service p08-2300

add service p07-2300

add service p06-2300

add service p05-2300

active

content http://www.efgh.com/xyz/pdfebill

advanced-balance arrowpoint-cookie

port 80

protocol tcp

url "//www.efgh.com/xyz/pdfebill*"

balance aca

vip address 10.5.58.25

add service p12-2000

add service ep11-2000

add service p10-2000

add service p09-2000

no persistent

arrowpoint-cookie browser-expire

active

We added this new line into the above mentioned content.

arrowpoint-cookie path "/xyz/pdfebill"

So now the content looks like this as of now after the changes:

content http://www.efgh.com/xyz/pdfebill

advanced-balance arrowpoint-cookie

port 80

protocol tcp

url "//www.efgh.com/xyz/pdfebill*"

balance aca

vip address 10.5.58.25

add service p12-22040

add service ep11-22040

add service p10-22040

add service p09-22040

no persistent

arrowpoint-cookie browser-expire

arrowpoint-cookie path "/xyz/pdfebill" -----> new line added into the content

active

Now the problem is that the url http://www.efgh.com/xyz/pdfebill points to the machines p09/p10/p11/p12 and also p05/p06/p07/p08 as when we see into the arrowpoint cookie it is showing the address of the servers from both the groups.

How can we set the arrowpoint cookie so taht it should just get stick to the p09/p10/p11/p12 only instead of the default servers p05/p06/p07/p08.

Regards

RS

I have this problem too.
0 votes
Correct Answer by sachinga.hcl about 5 years 11 months ago

Hi Robets,

Thanks for the update.

I would be glad to assist you any time.

Sachin Garg

Correct Answer by sachinga.hcl about 5 years 11 months ago

Hi Robert,

Try using a  new command called "arrowpoint-cookie name".

Try to use that, you can have each content rule have a different cookie name.  This would be preferable.

The cookie name will be the same by default -> ARPT.

The browser on your machine is the device that decides how to save the cookie.

Normally, there can be only 1 cookie name/value per site.

So, since you are using 2 different vips, the browser should keep the 2 cookies in memory and use the appropriate one for the each vip.

In case of doubt, you can always rename the cookie on the CSS to be different for each application.

CSS11503(config-owner-content[www])# arrowpoint-cookie name ?

                String to be used in the Name=Value pair for cookie. (Len:

                      0-31)

Regards,

Tell me if it works.

HTH

Sachin Garg

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
robertsmith.net... Sun, 12/19/2010 - 23:27

HI Gillies,

I tried using it with several rules but it did not work.

Could you suggest something how to overcome this.

Thanks in advance.

Roberts'

Correct Answer
sachinga.hcl Sun, 12/19/2010 - 23:32

Hi Robert,

Try using a  new command called "arrowpoint-cookie name".

Try to use that, you can have each content rule have a different cookie name.  This would be preferable.

The cookie name will be the same by default -> ARPT.

The browser on your machine is the device that decides how to save the cookie.

Normally, there can be only 1 cookie name/value per site.

So, since you are using 2 different vips, the browser should keep the 2 cookies in memory and use the appropriate one for the each vip.

In case of doubt, you can always rename the cookie on the CSS to be different for each application.

CSS11503(config-owner-content[www])# arrowpoint-cookie name ?

                String to be used in the Name=Value pair for cookie. (Len:

                      0-31)

Regards,

Tell me if it works.

HTH

Sachin Garg

robertsmith.net... Sun, 12/19/2010 - 23:45

Hi Sachin,

Thanks you for your best replies as always.

I have just tried this in my lab config and it is working.

Let me check it more in my other contents as well. Will update you then shortly.

Now I can get dfifferent cookies.

Also as per the new software the string lenth can go upto 0-63 chars that is in total 64 chars.

Anyways thanks to you all.

Roberts

Correct Answer
sachinga.hcl Sun, 12/19/2010 - 23:46

Hi Robets,

Thanks for the update.

I would be glad to assist you any time.

Sachin Garg

robertsmith.net... Sun, 12/19/2010 - 23:49

Hi Sachin,

I am going through your other posts and I find them to be vey much informative and I am going to keep them for further references as they clear a lot of my doubts and your links are always very useful.

Thanks,

Roberts'

Actions

This Discussion