cookie sessions
Opened this issue · 8 comments
Hi!
I recently spawned cookie session projects and wonder would it be feasible to have either inside axiom or as a external helper?
In either event, feedback is welcome.
TIA,
--Vladimir Dronnikov
Axiom takes an option for a custom session store module. I like the idea of having your project as some kind of plugin, so people who want to use it just have to put it into their rebar.config and configure the session store module. We would need to write a module, that axiom_session
can talk to as a middleman, either in your project or in the axiom source. What do you say?
Am I right that I need to implement a proxy like https://github.com/tsujigiri/axiom/blob/master/src/axiom_session_ets.erl ?
What is the policy of updating cowboy, as they seem to rewrite cookie handling stuff since 0.6.1, and I rely on that.
Regarding the proxy module, that's correct. What do you mean with policy of updating cowboy? When there is a new tagged version I will eventually upgrade the dependency. First I will have to make the http_req
record opaque, though, and add some more functions to get to the stuff that's in there. After 0.6.1 the http_req
is not exported anymore.
I see. I'll wait till it gets 0.8.
@tsujigiri regarding including http_req, check out the discussion here ninenines/cowboy#266 and ninenines/cowboy#267
@rambocoder I'm aware. Adapting to that shouldn't be too hard. I'm just quite busy atm.
I upgraded Cowboy to 0.8.3. You can go ahead now. :)