I would like to set a session bound value that\'s synced between client and server in Meteor. I\'m thinking that should be done in a Collection, since Session isn\'t synced betw
I would recommend indexing the particular field in the collection with a TTL parameter, this will ensure that documents expire after a specified time.
Do it from the Mongo shell like so:
db.myCollection.ensureIndex( { "fieldName": 1 }, { expireAfterSeconds: 3600 } )