Using Sessions in Meteor

2016 04 08 No Comments

Sessions are necessary at almost many project. In meteor, it is simple to use it.

First, you should add session library to project.

meteor add session

Then, you can use like this sessions in meteor js.

Session.get('key'); // get
Session.set('key', value); // edit/add
delete Session.keys.key // delete

Edit:
You can use this package to use sessions.
https://atmospherejs.com/u2622/persistent-session