{"action":"created","issue":{"url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/943","repository_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth","labels_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/943/labels{/name}","comments_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/943/comments","events_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/943/events","html_url":"https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/943","id":151256142,"number":943,"title":"Remember me created cookie disappear when loging out.","user":{"login":"Wmas","id":11577842,"avatar_url":"https://avatars.githubusercontent.com/u/11577842?v=3","gravatar_id":"","url":"https://api.github.com/users/Wmas","html_url":"https://github.com/Wmas","followers_url":"https://api.github.com/users/Wmas/followers","following_url":"https://api.github.com/users/Wmas/following{/other_user}","gists_url":"https://api.github.com/users/Wmas/gists{/gist_id}","starred_url":"https://api.github.com/users/Wmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wmas/subscriptions","organizations_url":"https://api.github.com/users/Wmas/orgs","repos_url":"https://api.github.com/users/Wmas/repos","events_url":"https://api.github.com/users/Wmas/events{/privacy}","received_events_url":"https://api.github.com/users/Wmas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-04-26T22:40:00Z","updated_at":"2016-04-27T17:31:41Z","closed_at":"2016-04-27T17:21:02Z","body":"Hi Ben,\r\n\r\nI am using your script for a while now, but today I was asked to activate the 'Remember me option' which I did.\r\nDone! I thought. Unfortunately the user could still not be remembered.\r\nAfter spending a few hours looking up for the problem I found a strange issue.\r\n\r\nWhen I try to log in my self I will clearly see in my console (firebug on FF) that the the cookies will be created correctly and they are also there when I search for the cookies in the browser.\r\n\r\nStrangely when I logout the cookies disappears (also have checked in the browser cookies list) and are not available anymore when I try to login again.\r\n\r\nI don't know anymore what to do.\r\n\r\nI will appreciate your help\r\n\r\nCheers \r\n\r\nFranco\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/comments/215161982","html_url":"https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/943#issuecomment-215161982","issue_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/943","id":215161982,"user":{"login":"Wmas","id":11577842,"avatar_url":"https://avatars.githubusercontent.com/u/11577842?v=3","gravatar_id":"","url":"https://api.github.com/users/Wmas","html_url":"https://github.com/Wmas","followers_url":"https://api.github.com/users/Wmas/followers","following_url":"https://api.github.com/users/Wmas/following{/other_user}","gists_url":"https://api.github.com/users/Wmas/gists{/gist_id}","starred_url":"https://api.github.com/users/Wmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wmas/subscriptions","organizations_url":"https://api.github.com/users/Wmas/orgs","repos_url":"https://api.github.com/users/Wmas/repos","events_url":"https://api.github.com/users/Wmas/events{/privacy}","received_events_url":"https://api.github.com/users/Wmas/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T17:31:40Z","updated_at":"2016-04-27T17:31:40Z","body":"My application can be accessed by many users. Every user has his own space in it.\r\nWhen someone want to leave than he/she clicks on 'Logout'.\r\n\r\nIf some user want to use the 'remember me' option in the actual situation wont work because the cookies will be deleted by default.\r\n\r\nMy idea was to keep track of the user table field 'remember_code'.\r\n\r\nif($remember_code == NULL){\r\nif (get_cookie($this->config->item('identity_cookie_name', 'ion_auth')))\r\n{\r\n    delete_cookie($this->config->item('identity_cookie_name', 'ion_auth'));\r\n}\r\nif (get_cookie($this->config->item('remember_cookie_name', 'ion_auth')))\r\n{\r\n    delete_cookie($this->config->item('remember_cookie_name', 'ion_auth'));\r\n}\r\n}"}}