/meteor-server-session

Serverside Session through a Meteor.Collection (get, set, equals etc.)

Primary LanguageJavaScriptMIT LicenseMIT

Meteor ServerSession

This package provides a simple serverside implementation of the Session. You can use it for site wide configuration, the server side session does not differ per user. It uses the same API:

ServerSession.set(key, value);
ServerSession.get(key);
ServerSession.equals(key, expected, identical = true);

You can also define a condition, which returns true or false (if false it won't set any value)

ServerSession.setCondition(function (key, value)); // Should only be invoked on the server

There's no setDefault now, as it doesn't make any sense to me as of now, write a ticket if you think otherwise.

meteor add matteodem:server-session