Express implements a server side session object that lets you store data specific to a client. How would you do the equivalent in Meteor?
strack recommended using a coll
I think a "meteor" way to do this is:
On server side create and publish a ClientSession collection
UserSession = new Meteor.Collection("user_sessions");
Meteor.publish('user_sessions', function (user) {
return UserSession.find(user);
});
On client side
Session.set('user_id', 42);
UserSession = new Meteor.Collection("user_sessions");
Meteor.subscribe('user_sessions', Session.get('user_id'));
You now have an application-level UserSession object that is specific to that user that you can put/get stuff.
Also, you can manipulate the UserSession collection on the server using Meteor#methods.