{"action":"created","issue":{"url":"https://api.github.com/repos/paragi/sphp/issues/14","repository_url":"https://api.github.com/repos/paragi/sphp","labels_url":"https://api.github.com/repos/paragi/sphp/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/paragi/sphp/issues/14/comments","events_url":"https://api.github.com/repos/paragi/sphp/issues/14/events","html_url":"https://github.com/paragi/sphp/issues/14","id":303656672,"number":14,"title":"Subdomain cookie","user":{"login":"karimhb","id":3731447,"avatar_url":"https://avatars1.githubusercontent.com/u/3731447?v=4","gravatar_id":"","url":"https://api.github.com/users/karimhb","html_url":"https://github.com/karimhb","followers_url":"https://api.github.com/users/karimhb/followers","following_url":"https://api.github.com/users/karimhb/following{/other_user}","gists_url":"https://api.github.com/users/karimhb/gists{/gist_id}","starred_url":"https://api.github.com/users/karimhb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karimhb/subscriptions","organizations_url":"https://api.github.com/users/karimhb/orgs","repos_url":"https://api.github.com/users/karimhb/repos","events_url":"https://api.github.com/users/karimhb/events{/privacy}","received_events_url":"https://api.github.com/users/karimhb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-08T22:31:42Z","updated_at":"2018-03-10T08:42:41Z","closed_at":null,"author_association":"NONE","body":"There is no way of setting cookies at .domain (DotDomain), cookies are always set at domain.com (without the dot).\r\n\r\n     `setcookie(\"AAA\", \"value\" -1, '/', \".domain.com\"); // is set at domain.com`"},"comment":{"url":"https://api.github.com/repos/paragi/sphp/issues/comments/372013914","html_url":"https://github.com/paragi/sphp/issues/14#issuecomment-372013914","issue_url":"https://api.github.com/repos/paragi/sphp/issues/14","id":372013914,"user":{"login":"paragi","id":4333973,"avatar_url":"https://avatars3.githubusercontent.com/u/4333973?v=4","gravatar_id":"","url":"https://api.github.com/users/paragi","html_url":"https://github.com/paragi","followers_url":"https://api.github.com/users/paragi/followers","following_url":"https://api.github.com/users/paragi/following{/other_user}","gists_url":"https://api.github.com/users/paragi/gists{/gist_id}","starred_url":"https://api.github.com/users/paragi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragi/subscriptions","organizations_url":"https://api.github.com/users/paragi/orgs","repos_url":"https://api.github.com/users/paragi/repos","events_url":"https://api.github.com/users/paragi/events{/privacy}","received_events_url":"https://api.github.com/users/paragi/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T08:42:41Z","updated_at":"2018-03-10T08:42:41Z","author_association":"OWNER","body":"Hi karimhb\r\n\r\nI don't understand the meaning of this: \"value\" -1 in your example.\r\nDomain is the 5th parameter of the setcookie function. You only specify 4.\r\nThis would result in that the cookie could specify the default domain.\r\n\r\nThis is from the PHP manual:\r\n> The (sub)domain that the cookie is available to. Setting this to a subdomain (such as 'www.example.com') will make the cookie available to that subdomain and all other sub-domains of it (i.e. w2.www.example.com). To make the cookie available to the whole domain (including all subdomains of it), simply set the value to the domain name ('example.com', in this case).\r\n>  Older browsers still implementing the deprecated » RFC 2109 may require a leading . to match all subdomains.\r\n\r\nDo you disagree with this? \r\n\r\nBefore solving an issue, its important to know that its the right issue to solve :)\r\nI would like to be very clear about this, before commenting time and resources. "}}
{"actor":{"display_login":"paragi"}}