Özer Gül

Using Sessions in Meteor

2016 04 08 Javascript

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

Leave a Reply

Your email address will not be published. Required fields are marked *

(c) Özer Gül, css framework w3.css