{"action":"opened","issue":{"url":"https://api.github.com/repos/expressjs/session/issues/206","labels_url":"https://api.github.com/repos/expressjs/session/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/session/issues/206/comments","events_url":"https://api.github.com/repos/expressjs/session/issues/206/events","html_url":"https://github.com/expressjs/session/issues/206","id":105722577,"number":206,"title":"Cookie names are capitalized and it breaks things","user":{"login":"scaryguy","id":2168598,"avatar_url":"https://avatars.githubusercontent.com/u/2168598?v=3","gravatar_id":"","url":"https://api.github.com/users/scaryguy","html_url":"https://github.com/scaryguy","followers_url":"https://api.github.com/users/scaryguy/followers","following_url":"https://api.github.com/users/scaryguy/following{/other_user}","gists_url":"https://api.github.com/users/scaryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/scaryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scaryguy/subscriptions","organizations_url":"https://api.github.com/users/scaryguy/orgs","repos_url":"https://api.github.com/users/scaryguy/repos","events_url":"https://api.github.com/users/scaryguy/events{/privacy}","received_events_url":"https://api.github.com/users/scaryguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T02:55:02Z","updated_at":"2015-09-10T02:55:02Z","closed_at":null,"body":"As stated here: http://stackoverflow.com/questions/11311893/is-the-name-of-a-cookie-case-sensitive\r\nCookie names are case-sensitive. Express-session is capitalizing the name attribute and it shouldn't happen, I think.\r\n\r\nHere is my config:\r\n\r\n```js\r\napp.use(session({\r\n    store: new RedisStore({\r\n        host: config.redis_instance_local_ip,\r\n        port: config.redis_instance_local_port\r\n    }),\r\n    cookie: {\r\n        'domain': '.my_domain.com'\r\n    },\r\n    secret: config.application_session_secret,\r\n    resave: false,\r\n    saveUninitialized: true\r\n}));\r\n```\r\n\r\nThis results this:\r\n```\r\nconnect.sid=s%3ApGErf0IUZpXGqWNwaAy4Y1Gv5u1tKGDq.7ZFKgyQboP9XPM7I%2FAhdNNnq6YtMiRoFu4CeVlxdz9c; Domain=.my_domain.com; Path=/; HttpOnly\r\n```\r\n\r\nI tried to do it like `'domain': '.mydomain.com'` but it still capitalizes the name.\r\n\r\nI have another header file created by nginx loadbalancer and it has 'domain' option lowercased. On Safari, -I guess- because of that, cookies doesn't merge. There might be some other consequence in different circumstances for other people, too.\r\n\r\nIs there a way to force it to be as it's given? If there is not, don't you think that this is an issue?"}}