Enlight_Components_Session_Namespace::ensureFrontendSessionClosed(Shopware()->Container()); // Ensure no session is active before starting the backend session below. We need to do this because there could
// be another session with inconsistent/invalid state in the container.
if(session_status() === PHP_SESSION_ACTIVE){ session_write_close(); // The empty session id signals to `Enlight_Components_Session_Namespace::start()` that the session cookie
// should be used as session id.
session_id(''); }