Sticky Sessions

I am using Traefik 2.4.9 (IngressRoute), sticky sessions are not working, I have included sticky session true in rule. Am I missing anything else

Below is my rule

routes:

  • kind: Rule
    match: PathPrefix("/dddd")
    middlewares:
    • name: sr-quick-stripprefix
      namespace: sr
      services:
    • name: sr-quick-pgx-service
      namespace: sr
      port: 8080
      sticky:
      cookie:
      httpOnly: true