{"action":"closed","issue":{"url":"https://api.github.com/repos/kataras/iris/issues/685","repository_url":"https://api.github.com/repos/kataras/iris","labels_url":"https://api.github.com/repos/kataras/iris/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/kataras/iris/issues/685/comments","events_url":"https://api.github.com/repos/kataras/iris/issues/685/events","html_url":"https://github.com/kataras/iris/issues/685","id":245004154,"number":685,"title":"[Help]Attach session to Context","user":{"login":"sunstrikemd","id":22708188,"avatar_url":"https://avatars2.githubusercontent.com/u/22708188?v=4","gravatar_id":"","url":"https://api.github.com/users/sunstrikemd","html_url":"https://github.com/sunstrikemd","followers_url":"https://api.github.com/users/sunstrikemd/followers","following_url":"https://api.github.com/users/sunstrikemd/following{/other_user}","gists_url":"https://api.github.com/users/sunstrikemd/gists{/gist_id}","starred_url":"https://api.github.com/users/sunstrikemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunstrikemd/subscriptions","organizations_url":"https://api.github.com/users/sunstrikemd/orgs","repos_url":"https://api.github.com/users/sunstrikemd/repos","events_url":"https://api.github.com/users/sunstrikemd/events{/privacy}","received_events_url":"https://api.github.com/users/sunstrikemd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-24T08:18:08Z","updated_at":"2017-07-24T10:45:28Z","closed_at":"2017-07-24T10:45:28Z","body":"Below is my code:\r\n\r\ntype newContext struct {\r\n\tcontext.Context\r\n\tSession *sessions.Sessions\r\n}\r\n\r\nsession := sessions.New(sessions.Config{\r\n\t\tCookie: Cookie,\r\n\t})\r\n\r\napp.ContextPool.Attach(func() context.Context {\r\n\t\treturn &newContext{\r\n\t\t\tSession: session,\r\n\t\t\tContext: context.NewContext(app),\r\n\t\t}\r\n\t})\r\n\r\napp.UseGlobal(func(ctx context.Context) {\r\n                ctx.Session // <- for example here not working right now ;(\r\n\t\tctx.Next()\r\n\t})\r\n\r\n\r\nI have looking through example and overridden Context struct to attach my own context, my question is how can i access session in context something like ctx.Session, or what i'm doing wrong? can someone help me?"}}
{"actor":{"display_login":"sunstrikemd"}}