{"action":"created","issue":{"url":"https://api.github.com/repos/spiral/roadrunner/issues/18","repository_url":"https://api.github.com/repos/spiral/roadrunner","labels_url":"https://api.github.com/repos/spiral/roadrunner/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/spiral/roadrunner/issues/18/comments","events_url":"https://api.github.com/repos/spiral/roadrunner/issues/18/events","html_url":"https://github.com/spiral/roadrunner/issues/18","id":334840217,"node_id":"MDU6SXNzdWUzMzQ4NDAyMTc=","number":18,"title":"Symfony: Default SESSION does not work (no cookie is set in Response)","user":{"login":"Richard87","id":5749715,"node_id":"MDQ6VXNlcjU3NDk3MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/5749715?v=4","gravatar_id":"","url":"https://api.github.com/users/Richard87","html_url":"https://github.com/Richard87","followers_url":"https://api.github.com/users/Richard87/followers","following_url":"https://api.github.com/users/Richard87/following{/other_user}","gists_url":"https://api.github.com/users/Richard87/gists{/gist_id}","starred_url":"https://api.github.com/users/Richard87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Richard87/subscriptions","organizations_url":"https://api.github.com/users/Richard87/orgs","repos_url":"https://api.github.com/users/Richard87/repos","events_url":"https://api.github.com/users/Richard87/events{/privacy}","received_events_url":"https://api.github.com/users/Richard87/received_events","type":"User","site_admin":false},"labels":[{"id":788294165,"node_id":"MDU6TGFiZWw3ODgyOTQxNjU=","url":"https://api.github.com/repos/spiral/roadrunner/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true},{"id":972327113,"node_id":"MDU6TGFiZWw5NzIzMjcxMTM=","url":"https://api.github.com/repos/spiral/roadrunner/labels/integration","name":"integration","color":"e89bdf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":59,"created_at":"2018-06-22T11:12:21Z","updated_at":"2018-10-05T09:12:57Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nI have this code:\r\n\r\n    <?php\r\n    /**\r\n     * Created by PhpStorm.\r\n     * User: richard\r\n     * Date: 22.06.18\r\n     * Time: 11:59\r\n     */\r\n    \r\n    require __DIR__ . '/vendor/autoload.php';\r\n    \r\n    use App\\Kernel;\r\n    use Symfony\\Bridge\\PsrHttpMessage\\Factory\\DiactorosFactory;\r\n    use Symfony\\Bridge\\PsrHttpMessage\\Factory\\HttpFoundationFactory;\r\n    use Symfony\\Component\\Debug\\Debug;\r\n    use Symfony\\Component\\Dotenv\\Dotenv;\r\n    use Symfony\\Component\\HttpFoundation\\Request;\r\n    \r\n    if (getenv('APP_ENV') === false) {\r\n        (new Dotenv())->load(__DIR__.'/.env');\r\n    }\r\n    $env = getenv('APP_ENV') ?: 'dev';\r\n    $debug = getenv('APP_DEBUG') ? ((bool) getenv('APP_DEBUG')) : !in_array($env, ['prod', 'k8s']);\r\n    \r\n    if ($debug) {\r\n        umask(0000);\r\n        Debug::enable();\r\n    }\r\n    if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {\r\n        Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);\r\n    }\r\n    if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {\r\n        Request::setTrustedHosts(explode(',', $trustedHosts));\r\n    }\r\n    $kernel = new Kernel($env, $debug);\r\n    $httpFoundationFactory = new HttpFoundationFactory();\r\n    \r\n    \r\n    \r\n    \r\n    $relay = new Spiral\\Goridge\\StreamRelay(STDIN, STDOUT);\r\n    $psr7 = new Spiral\\RoadRunner\\PSR7Client(new Spiral\\RoadRunner\\Worker($relay));\r\n    \r\n    \r\n    while ($req = $psr7->acceptRequest()) {\r\n        try {\r\n            $request = $httpFoundationFactory->createRequest($req);\r\n            $response = $kernel->handle($request);\r\n    \r\n            $psr7factory = new DiactorosFactory();\r\n            $psr7response = $psr7factory->createResponse($response);\r\n            $psr7->respond($psr7response);\r\n    \r\n            $kernel->terminate($request, $response);\r\n        } catch (\\Throwable $e) {\r\n            $psr7->getWorker()->error((string)$e);\r\n        }\r\n    }\r\n\r\nIt's slighly modified Symfony code to handle env-variables :)\r\n(Also, it's stunningly fast!!!!)\r\n\r\nBut I don't get any cookies returned, so I can see my logg inn is accepted, and I'm redirected to the dashboard, but there I get a permission denied and redirect to login (because no cookies have been set)...\r\n\r\nAny tips on how to troubleshoot, or what might be wrong?"},"comment":{"url":"https://api.github.com/repos/spiral/roadrunner/issues/comments/427298283","html_url":"https://github.com/spiral/roadrunner/issues/18#issuecomment-427298283","issue_url":"https://api.github.com/repos/spiral/roadrunner/issues/18","id":427298283,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzI5ODI4Mw==","user":{"login":"Richard87","id":5749715,"node_id":"MDQ6VXNlcjU3NDk3MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/5749715?v=4","gravatar_id":"","url":"https://api.github.com/users/Richard87","html_url":"https://github.com/Richard87","followers_url":"https://api.github.com/users/Richard87/followers","following_url":"https://api.github.com/users/Richard87/following{/other_user}","gists_url":"https://api.github.com/users/Richard87/gists{/gist_id}","starred_url":"https://api.github.com/users/Richard87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Richard87/subscriptions","organizations_url":"https://api.github.com/users/Richard87/orgs","repos_url":"https://api.github.com/users/Richard87/repos","events_url":"https://api.github.com/users/Richard87/events{/privacy}","received_events_url":"https://api.github.com/users/Richard87/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T09:12:57Z","updated_at":"2018-10-05T09:12:57Z","author_association":"NONE","body":"@dunglas Is that a feature you think Symfony wants in the core, or should it be a part of `RoadRunner` or a  new library, maybe in a `RoadRunnerBundle` to connect it all?\r\n\r\nI have a feeling any legacy projects might *take a hit* if we disconnect symfony from php's own session handling?"}}
{"actor":{"display_login":"Richard87"}}