Forum Discussion

rohith_78824's avatar
rohith_78824
Icon for Nimbostratus rankNimbostratus
Jul 26, 2012

replace cookie path from / to Context root of the application

Hi,

 

 

We have multiple applications using the same host name but have a different context root.

 

All these applications dont send in a cookie path. Because of this the JSESSIONID cookie is stepped over by each other in the browser when multiple application are opened in the same browser in multiple tabs.

 

 

I was hoping if I can do it in a central place rather than change all applications and deploy them.

 

Is there a way to replace cookie path in the response from "/" to the context-root of the application.

 

 

 

Thanks,

 

Rohith

 

1 Reply

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    yes. The Proxypass iRule in codeshare does this for cookies sent. Have a look at the cookie re-writing part of it.

     

     

    https://devcentral.f5.com/wiki/iRules.ProxyPassV10.ashx

     

     

    H