Serverside Session through a Meteor.Collection (get, set, equals etc.)
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tests
.gitignore
LICENSE
README.md
package.js
smart.json
versions.json

README.md

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