Forum Discussion

tz123_289749's avatar
tz123_289749
Icon for Nimbostratus rankNimbostratus
Oct 17, 2018

How to configure cookie persistence with ASP.NET session cookie without iRule

We have a server send ASP.NET_SessionID=x... in cookie for each session to the client and we want to configure cookie persistence for this application.

 

I have Cookie Method configured as "HTTP Cookie Passive" and Cookie Name as "ASP.NET_SessionID". But it does not work. What else need to be configured to make this work?

 

Thank you.

 

1 Reply

  • Hi,

     

    In fact you don't need any irule for your need, only point the cookie must be in the correct format for F5 to use it. Which is detailed in:

     

    https://support.f5.com/csp/article/K83419154

     

    For the HTTP Cookie Passive method to succeed, a cookie must come from the web server with the appropriate server information in the cookie. Using the BIG-IP Configuration utility, you generate a template for the cookie string with encoding automatically added, and then edit the template to create the actual cookie.

     

    Additional point, F5 recommends that you use the HTTP Cookie Rewrite method instead of the HTTP Cookie Passive method when possible.

     

    let me know if you need more details.

     

    regards,