{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/cookie-session/issues/50","labels_url":"https://api.github.com/repos/expressjs/cookie-session/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/cookie-session/issues/50/comments","events_url":"https://api.github.com/repos/expressjs/cookie-session/issues/50/events","html_url":"https://github.com/expressjs/cookie-session/issues/50","id":118370902,"number":50,"title":"Secure CookieSession when using iisnode","user":{"login":"alvarotrigo","id":1706326,"avatar_url":"https://avatars.githubusercontent.com/u/1706326?v=3","gravatar_id":"","url":"https://api.github.com/users/alvarotrigo","html_url":"https://github.com/alvarotrigo","followers_url":"https://api.github.com/users/alvarotrigo/followers","following_url":"https://api.github.com/users/alvarotrigo/following{/other_user}","gists_url":"https://api.github.com/users/alvarotrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/alvarotrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvarotrigo/subscriptions","organizations_url":"https://api.github.com/users/alvarotrigo/orgs","repos_url":"https://api.github.com/users/alvarotrigo/repos","events_url":"https://api.github.com/users/alvarotrigo/events{/privacy}","received_events_url":"https://api.github.com/users/alvarotrigo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressjs/cookie-session/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-23T12:29:07Z","updated_at":"2015-11-24T10:55:03Z","closed_at":"2015-11-24T00:44:57Z","body":"I'm using node with IIS by using [iisnode](https://github.com/tjanczuk/iisnode) and I'm having troubles setting the CookieSession option `secure:true`.\r\n\r\nI'm using HTTPS on IIS and I'm redirecting any HTTP to HTTPS.\r\nBut evenw ith this, if I set the [CookieSession](https://github.com/expressjs/cookie-session) option `secure:true`, the session won't have any content after login.\r\n\r\n> **secure:** a boolean indicating whether the cookie is only to be sent over HTTPS (false by default for HTTP, true by default for HTTPS).\r\n\r\nI'm forced to use `secure:false` to make it work. Why is it?"},"comment":{"url":"https://api.github.com/repos/expressjs/cookie-session/issues/comments/159228842","html_url":"https://github.com/expressjs/cookie-session/issues/50#issuecomment-159228842","issue_url":"https://api.github.com/repos/expressjs/cookie-session/issues/50","id":159228842,"user":{"login":"alvarotrigo","id":1706326,"avatar_url":"https://avatars.githubusercontent.com/u/1706326?v=3","gravatar_id":"","url":"https://api.github.com/users/alvarotrigo","html_url":"https://github.com/alvarotrigo","followers_url":"https://api.github.com/users/alvarotrigo/followers","following_url":"https://api.github.com/users/alvarotrigo/following{/other_user}","gists_url":"https://api.github.com/users/alvarotrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/alvarotrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvarotrigo/subscriptions","organizations_url":"https://api.github.com/users/alvarotrigo/orgs","repos_url":"https://api.github.com/users/alvarotrigo/repos","events_url":"https://api.github.com/users/alvarotrigo/events{/privacy}","received_events_url":"https://api.github.com/users/alvarotrigo/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T10:55:03Z","updated_at":"2015-11-24T10:55:03Z","body":"@dougwilson thanks for it! It solved it. \r\nSorry for it, It seems I didn't read the docs with much attention! "}}