{"action":"created","issue":{"url":"https://api.github.com/repos/bungle/lua-resty-session/issues/13","labels_url":"https://api.github.com/repos/bungle/lua-resty-session/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/bungle/lua-resty-session/issues/13/comments","events_url":"https://api.github.com/repos/bungle/lua-resty-session/issues/13/events","html_url":"https://github.com/bungle/lua-resty-session/issues/13","id":101003241,"number":13,"title":"Pluggable server-side storage engines for session data","user":{"login":"zandbelt","id":2339879,"avatar_url":"https://avatars.githubusercontent.com/u/2339879?v=3","gravatar_id":"","url":"https://api.github.com/users/zandbelt","html_url":"https://github.com/zandbelt","followers_url":"https://api.github.com/users/zandbelt/followers","following_url":"https://api.github.com/users/zandbelt/following{/other_user}","gists_url":"https://api.github.com/users/zandbelt/gists{/gist_id}","starred_url":"https://api.github.com/users/zandbelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zandbelt/subscriptions","organizations_url":"https://api.github.com/users/zandbelt/orgs","repos_url":"https://api.github.com/users/zandbelt/repos","events_url":"https://api.github.com/users/zandbelt/events{/privacy}","received_events_url":"https://api.github.com/users/zandbelt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bungle/lua-resty-session/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-14T12:42:05Z","updated_at":"2015-08-24T19:59:08Z","closed_at":null,"body":"I'd very much like to see server side support for session storage as listed in the roadmap. Any chance that this will move forward in the near future? FWIW: I'd be willing to contribute to the backends themselves (shm, files, memcached, redis...) but I don't feel comfortable to make the changes to the core infrastructure to start supporting those."},"comment":{"url":"https://api.github.com/repos/bungle/lua-resty-session/issues/comments/134358978","html_url":"https://github.com/bungle/lua-resty-session/issues/13#issuecomment-134358978","issue_url":"https://api.github.com/repos/bungle/lua-resty-session/issues/13","id":134358978,"user":{"login":"bungle","id":983257,"avatar_url":"https://avatars.githubusercontent.com/u/983257?v=3","gravatar_id":"","url":"https://api.github.com/users/bungle","html_url":"https://github.com/bungle","followers_url":"https://api.github.com/users/bungle/followers","following_url":"https://api.github.com/users/bungle/following{/other_user}","gists_url":"https://api.github.com/users/bungle/gists{/gist_id}","starred_url":"https://api.github.com/users/bungle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bungle/subscriptions","organizations_url":"https://api.github.com/users/bungle/orgs","repos_url":"https://api.github.com/users/bungle/repos","events_url":"https://api.github.com/users/bungle/events{/privacy}","received_events_url":"https://api.github.com/users/bungle/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T19:59:08Z","updated_at":"2015-08-24T19:59:08Z","body":"Okay,\r\n\r\nHere is my first take on pluggable storages and serializers (maybe later the encrypters as well) pushed on storages branch:\r\nhttps://github.com/bungle/lua-resty-session/tree/storages\r\n\r\nThe code seems to be backward compatible. You can see the first two storage adapters here:\r\n\r\n1. [Client Side Cookie](https://github.com/bungle/lua-resty-session/blob/storages/lib/resty/session/storage/cookie.lua)\r\n2. [ngx.shared.DICT](https://github.com/bungle/lua-resty-session/blob/storages/lib/resty/session/storage/shm.lua)\r\n\r\nError handling and logging still needs some refirements, but overall it seems ok, and the API for pluggable adapters isn't too bad (somewhat strange in some points). What do you think?"}}