{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/session/issues/651","repository_url":"https://api.github.com/repos/expressjs/session","labels_url":"https://api.github.com/repos/expressjs/session/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/session/issues/651/comments","events_url":"https://api.github.com/repos/expressjs/session/issues/651/events","html_url":"https://github.com/expressjs/session/issues/651","id":433530689,"node_id":"MDU6SXNzdWU0MzM1MzA2ODk=","number":651,"title":"How do I keep a session variable from changing?","user":{"login":"rdalfonso","id":4713950,"node_id":"MDQ6VXNlcjQ3MTM5NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/4713950?v=4","gravatar_id":"","url":"https://api.github.com/users/rdalfonso","html_url":"https://github.com/rdalfonso","followers_url":"https://api.github.com/users/rdalfonso/followers","following_url":"https://api.github.com/users/rdalfonso/following{/other_user}","gists_url":"https://api.github.com/users/rdalfonso/gists{/gist_id}","starred_url":"https://api.github.com/users/rdalfonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdalfonso/subscriptions","organizations_url":"https://api.github.com/users/rdalfonso/orgs","repos_url":"https://api.github.com/users/rdalfonso/repos","events_url":"https://api.github.com/users/rdalfonso/events{/privacy}","received_events_url":"https://api.github.com/users/rdalfonso/received_events","type":"User","site_admin":false},"labels":[{"id":558506885,"node_id":"MDU6TGFiZWw1NTg1MDY4ODU=","url":"https://api.github.com/repos/expressjs/session/labels/awaiting%20more%20info","name":"awaiting more info","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-04-16T00:21:07Z","updated_at":"2019-05-06T20:30:53Z","closed_at":null,"author_association":"NONE","body":"Seems like no matter what I do the value of req.session keeps changing.\r\n\r\nconst copySession - req.session.myObject;\r\nconst changedCopy = functionThatWantsToChangeTheCopyOnly(copySession);\r\n\r\nFor some reason even assigning the req.session to a variable, and changing THAT variable, affects the original req.session?\r\n\r\nAny ideas why?"},"comment":{"url":"https://api.github.com/repos/expressjs/session/issues/comments/489765232","html_url":"https://github.com/expressjs/session/issues/651#issuecomment-489765232","issue_url":"https://api.github.com/repos/expressjs/session/issues/651","id":489765232,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4OTc2NTIzMg==","user":{"login":"knoxcard","id":7561190,"node_id":"MDQ6VXNlcjc1NjExOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/7561190?v=4","gravatar_id":"","url":"https://api.github.com/users/knoxcard","html_url":"https://github.com/knoxcard","followers_url":"https://api.github.com/users/knoxcard/followers","following_url":"https://api.github.com/users/knoxcard/following{/other_user}","gists_url":"https://api.github.com/users/knoxcard/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxcard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxcard/subscriptions","organizations_url":"https://api.github.com/users/knoxcard/orgs","repos_url":"https://api.github.com/users/knoxcard/repos","events_url":"https://api.github.com/users/knoxcard/events{/privacy}","received_events_url":"https://api.github.com/users/knoxcard/received_events","type":"User","site_admin":false},"created_at":"2019-05-06T20:30:53Z","updated_at":"2019-05-06T20:30:53Z","author_association":"NONE","body":"I must have originally read your question too quickly at first, because I wouldn't have asked you to post your code.\r\n\r\nI know that exact problem you are having....\r\n\r\nWe have all experienced this...\r\n\r\n"}}
{"actor":{"display_login":"knoxcard"}}