Tag: Sessions

  • Symfony 5.3+ how to use Sessions with RequestStack

    So some changes happened in Symfony 5.3. Previously you could get to a session with either Session or SessionInterface. Some didn’t like how that worked so now it is moved to RequestStack. The docs or article are not correct here. It shows you get to the session like this. $session = $this->requestStack->getSession(); But that doesn’t […]

  • Symfony Session resources list

    Symfony Session resources list

    Plain session docs – This is the symfony documentation page about Sessions alone. This link shows the basic configuration and use of Sessions in Symfony. This also mentions not starting a session for Anonymous users and has links to other info about sessions. Configuring Sessions and Save handlers – Symfony documentation link. This covers more […]