{"action":"opened","issue":{"url":"https://api.github.com/repos/anjishnu/ask-alexa-pykit/issues/7","repository_url":"https://api.github.com/repos/anjishnu/ask-alexa-pykit","labels_url":"https://api.github.com/repos/anjishnu/ask-alexa-pykit/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/anjishnu/ask-alexa-pykit/issues/7/comments","events_url":"https://api.github.com/repos/anjishnu/ask-alexa-pykit/issues/7/events","html_url":"https://github.com/anjishnu/ask-alexa-pykit/issues/7","id":142802313,"number":7,"title":"Handling session attributes","user":{"login":"JoeGermuska","id":46313,"avatar_url":"https://avatars.githubusercontent.com/u/46313?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeGermuska","html_url":"https://github.com/JoeGermuska","followers_url":"https://api.github.com/users/JoeGermuska/followers","following_url":"https://api.github.com/users/JoeGermuska/following{/other_user}","gists_url":"https://api.github.com/users/JoeGermuska/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeGermuska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeGermuska/subscriptions","organizations_url":"https://api.github.com/users/JoeGermuska/orgs","repos_url":"https://api.github.com/users/JoeGermuska/repos","events_url":"https://api.github.com/users/JoeGermuska/events{/privacy}","received_events_url":"https://api.github.com/users/JoeGermuska/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-22T22:42:23Z","updated_at":"2016-03-22T22:42:23Z","closed_at":null,"body":"I'm still pretty new to Alexa development, but I find the session management kind of weird. It seems as though you have to make a point to send back session attributes every time, which is counter to web programming models where you can trust the framework to manage that.\r\n\r\nIf you and other people using this code are interested, I'd like to talk about a good approach to handling it, and I'm happy to implement it and/or test it since session management seems likely to be part of what I need.\r\n\r\nIt would be easy enough to expose what comes in as `request['session']['attributes']` as something like `request.session` and just use it as a dictionary. But then in the current model, you'd need to remember to pass it to `create_response` -- some design which protected against forgetting to make that explicit seems worth looking for.\r\n\r\n"}}