Skip to content

Latest commit

 

History

History
executable file
·
21 lines (16 loc) · 762 Bytes

README.md

File metadata and controls

executable file
·
21 lines (16 loc) · 762 Bytes

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