Skip to content

[Session][Test] Configured cookie domain is not set #12100

@pkruithof

Description

@pkruithof

I'm having troubles doing functional testing with multiple domains. It's a bit tricky, but I'll try to explain:

BrowserKit puts cookies in a CookieJar, in a domain[path][cookie] hierarchy. The values for these 3 keys are obtained from Cookie objects, which is created by the TestSessionListener.

Herein lies the problem: the cookie params are obtained via session_get_cookie_params, which uses the php-ini cookie values. Normally these are properly set in the NativeSessionStorage, not so much in the MockArraySessionStorage. This in turn leads to all sorts of problems when testing features that require cookies on a subdomain, for example when you have a "my.domain.org" subdomain.

/cc @Drak I believe you are the session-expert for Symfony 😉, do you have any ideas about this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy