{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9124","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9124/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9124/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9124/events","html_url":"https://github.com/yiisoft/yii2/issues/9124","id":95365804,"number":9124,"title":"Cookie stops working after enabling pretty url in Yii2 urlManager configuration","user":{"login":"rahil-geekunit","id":12493937,"avatar_url":"https://avatars.githubusercontent.com/u/12493937?v=3","gravatar_id":"","url":"https://api.github.com/users/rahil-geekunit","html_url":"https://github.com/rahil-geekunit","followers_url":"https://api.github.com/users/rahil-geekunit/followers","following_url":"https://api.github.com/users/rahil-geekunit/following{/other_user}","gists_url":"https://api.github.com/users/rahil-geekunit/gists{/gist_id}","starred_url":"https://api.github.com/users/rahil-geekunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahil-geekunit/subscriptions","organizations_url":"https://api.github.com/users/rahil-geekunit/orgs","repos_url":"https://api.github.com/users/rahil-geekunit/repos","events_url":"https://api.github.com/users/rahil-geekunit/events{/privacy}","received_events_url":"https://api.github.com/users/rahil-geekunit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T07:04:38Z","updated_at":"2015-07-16T07:45:53Z","closed_at":null,"body":"As soon as I enabled pretty urls in urlManager application configuration, the cookie seems to stop working and somewhat showing ambiguous behavior.\r\n\r\nHere is a detailed explanation of the issue;\r\nhttp://stackoverflow.com/questions/31447327/cookie-stops-working-after-enabling-pretty-url-in-yii2-urlmanager-configuration"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/121868194","html_url":"https://github.com/yiisoft/yii2/issues/9124#issuecomment-121868194","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9124","id":121868194,"user":{"login":"cbhp","id":5774444,"avatar_url":"https://avatars.githubusercontent.com/u/5774444?v=3","gravatar_id":"","url":"https://api.github.com/users/cbhp","html_url":"https://github.com/cbhp","followers_url":"https://api.github.com/users/cbhp/followers","following_url":"https://api.github.com/users/cbhp/following{/other_user}","gists_url":"https://api.github.com/users/cbhp/gists{/gist_id}","starred_url":"https://api.github.com/users/cbhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbhp/subscriptions","organizations_url":"https://api.github.com/users/cbhp/orgs","repos_url":"https://api.github.com/users/cbhp/repos","events_url":"https://api.github.com/users/cbhp/events{/privacy}","received_events_url":"https://api.github.com/users/cbhp/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T07:45:53Z","updated_at":"2015-07-16T07:45:53Z","body":"You are not using Yii's cookie object: http://www.yiiframework.com/doc-2.0/guide-runtime-sessions-cookies.html#cookies\r\n\r\nInstead you are calling the PHP function setcookie() (without setting path or domain) and $_COOKIE directly. That's wrong."}}