Skip to content

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

License

Notifications You must be signed in to change notification settings

znewsham/meteor-server-session

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%