{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10255","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10255/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10255/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10255/events","html_url":"https://github.com/yiisoft/yii2/issues/10255","id":118972923,"number":10255,"title":"about session component","user":{"login":"quorzz","id":15520129,"avatar_url":"https://avatars.githubusercontent.com/u/15520129?v=3","gravatar_id":"","url":"https://api.github.com/users/quorzz","html_url":"https://github.com/quorzz","followers_url":"https://api.github.com/users/quorzz/followers","following_url":"https://api.github.com/users/quorzz/following{/other_user}","gists_url":"https://api.github.com/users/quorzz/gists{/gist_id}","starred_url":"https://api.github.com/users/quorzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quorzz/subscriptions","organizations_url":"https://api.github.com/users/quorzz/orgs","repos_url":"https://api.github.com/users/quorzz/repos","events_url":"https://api.github.com/users/quorzz/events{/privacy}","received_events_url":"https://api.github.com/users/quorzz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/complexity:easy","name":"complexity:easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:ready%20for%20adoption","name":"status:ready for adoption","color":"02e10c"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":428,"closed_issues":1,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2015-12-08T15:40:44Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-11-26T05:05:20Z","updated_at":"2015-12-09T02:52:36Z","closed_at":"2015-12-08T08:15:05Z","body":"Of course,  the best practice is use `Yii::$app->session` or cookie instead of handle with `$_COOKIE $_SESSION ...` directly.\r\n\r\nbut (yes, here is a but ) , if by any chance,  one call `session_start` before that called by `Yii`. \r\n\r\nfor example, call `session_start` in the entry file or somewhere else ,\r\n\r\nthis will prevent the session component  to  `registerSessionHandler` `updateFlashCounters` .... \r\n\r\nthen the session component no longer works well,\r\n\r\nand in this case,  the bug is difficult to pull out.\r\n\r\nso maybe we can give a detect at first `session_start` in `\\yii\\web\\Session` ?\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/163089716","html_url":"https://github.com/yiisoft/yii2/issues/10255#issuecomment-163089716","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10255","id":163089716,"user":{"login":"quorzz","id":15520129,"avatar_url":"https://avatars.githubusercontent.com/u/15520129?v=3","gravatar_id":"","url":"https://api.github.com/users/quorzz","html_url":"https://github.com/quorzz","followers_url":"https://api.github.com/users/quorzz/followers","following_url":"https://api.github.com/users/quorzz/following{/other_user}","gists_url":"https://api.github.com/users/quorzz/gists{/gist_id}","starred_url":"https://api.github.com/users/quorzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quorzz/subscriptions","organizations_url":"https://api.github.com/users/quorzz/orgs","repos_url":"https://api.github.com/users/quorzz/repos","events_url":"https://api.github.com/users/quorzz/events{/privacy}","received_events_url":"https://api.github.com/users/quorzz/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T02:52:36Z","updated_at":"2015-12-09T02:52:36Z","body":"@AnatolyRugalev  yeah,  good idea to me . "}}