Fixes #5386 cookie class matches symfony class for potential future inte...

...gration