{"action":"created","issue":{"url":"https://api.github.com/repos/intercom/intercom-rails/issues/194","repository_url":"https://api.github.com/repos/intercom/intercom-rails","labels_url":"https://api.github.com/repos/intercom/intercom-rails/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-rails/issues/194/comments","events_url":"https://api.github.com/repos/intercom/intercom-rails/issues/194/events","html_url":"https://github.com/intercom/intercom-rails/issues/194","id":154517533,"number":194,"title":"Intercom session not destroyed via Devise log out","user":{"login":"abrambailey","id":978462,"avatar_url":"https://avatars.githubusercontent.com/u/978462?v=3","gravatar_id":"","url":"https://api.github.com/users/abrambailey","html_url":"https://github.com/abrambailey","followers_url":"https://api.github.com/users/abrambailey/followers","following_url":"https://api.github.com/users/abrambailey/following{/other_user}","gists_url":"https://api.github.com/users/abrambailey/gists{/gist_id}","starred_url":"https://api.github.com/users/abrambailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrambailey/subscriptions","organizations_url":"https://api.github.com/users/abrambailey/orgs","repos_url":"https://api.github.com/users/abrambailey/repos","events_url":"https://api.github.com/users/abrambailey/events{/privacy}","received_events_url":"https://api.github.com/users/abrambailey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-12T15:51:17Z","updated_at":"2016-05-13T15:26:07Z","closed_at":null,"body":"In my routes:\r\n```ruby\r\ndevise_for :users, controllers: { :omniauth_callbacks => \"users/omniauth_callbacks\", registrations: 'registrations', sessions: \"sessions\" }\r\n```\r\nIn my sessions_controller.rb\r\n```ruby\r\nclass SessionsController < Devise::SessionsController\r\n\r\n  after_action :prepare_intercom_shutdown, only: [:destroy]\r\n\r\n  protected\r\n  def prepare_intercom_shutdown\r\n    logger.debug \"><><><><><><><><><><>< prepare_intercom_shutdown ><><><><><><><><><><><\"\r\n    IntercomRails::ShutdownHelper.prepare_intercom_shutdown(session)\r\n  end\r\nend\r\n```\r\n\r\nIn my root path `pages#home` (redirected to after session destroy)\r\n```ruby\r\n  after_action :intercom_shutdown, only: [:home]\r\n  protected\r\n  def intercom_shutdown\r\n    logger.debug \"><><><><><><><><><><>< intercom_shutdown ><><><><><><><><><><><\"\r\n    IntercomRails::ShutdownHelper.intercom_shutdown(session, cookies)\r\n  end\r\n```\r\n\r\nIn my log:\r\n```\r\n><><><><><><><><><><>< prepare_intercom_shutdown ><><><><><><><><><><><\r\nStarted GET \"/\" for 127.0.0.1 at 2016-05-12 10:54:13 -0500\r\nProcessing by PagesController#home as HTML\r\n  Rendered pages/home.html.erb within layouts/application (98.6ms)\r\n  Rendered layouts/_styles.html.erb (68.8ms)\r\n  Rendered layouts/_header.html.erb (6.3ms)\r\n  Rendered layouts/_footer.html.erb (1.1ms)\r\n><><><><><><><><><><>< intercom_shutdown ><><><><><><><><><><><\r\n```"},"comment":{"url":"https://api.github.com/repos/intercom/intercom-rails/issues/comments/219076262","html_url":"https://github.com/intercom/intercom-rails/issues/194#issuecomment-219076262","issue_url":"https://api.github.com/repos/intercom/intercom-rails/issues/194","id":219076262,"user":{"login":"abrambailey","id":978462,"avatar_url":"https://avatars.githubusercontent.com/u/978462?v=3","gravatar_id":"","url":"https://api.github.com/users/abrambailey","html_url":"https://github.com/abrambailey","followers_url":"https://api.github.com/users/abrambailey/followers","following_url":"https://api.github.com/users/abrambailey/following{/other_user}","gists_url":"https://api.github.com/users/abrambailey/gists{/gist_id}","starred_url":"https://api.github.com/users/abrambailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrambailey/subscriptions","organizations_url":"https://api.github.com/users/abrambailey/orgs","repos_url":"https://api.github.com/users/abrambailey/repos","events_url":"https://api.github.com/users/abrambailey/events{/privacy}","received_events_url":"https://api.github.com/users/abrambailey/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T15:26:07Z","updated_at":"2016-05-13T15:26:07Z","body":"Ah I think we're starting to get somewhere just checked in my cookies and the cookie has a different app id `intercom-session-tx2p130c`... Why would that be?"}}