Relief-1 / Relief1

Relief1 - Providing a complete Disaster Preparedness, Relief and Recovery System for use worldwide.
15 stars 6 forks source link

How to store/pass session ID between hooks? #20

Closed mmalecki closed 2 months ago

mmalecki commented 13 years ago

Problem: session manager needs some session ID (unique for each user), by which he could query Riak. However, AFAIK, i socket.io/hook.io there's no way to get access to current request context (so that I could extract this token anytime I want).

Only way I see now is make every API function which needs session access have sessionID parameter. For me, it's -1, in most cases we'll have really long call chain and it may get nasty.

Any ideas how to get rid of that?

tl;dr: No sessionID parameter in almost every function call, how?

/cc @AvianFlu