Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

You can’t perform that action at this time.