meteor-user-session icon indicating copy to clipboard operation
meteor-user-session copied to clipboard

Provides a UserSession object that works just like Session does, except it's persistent so you can preserve state across devices *and* sessions.

Results 5 meteor-user-session issues
Sort by recently updated
recently updated
newest added

Consider to merge these changes. --- This change is [](https://reviewable.io/reviews/benjaminrh/meteor-user-session/2)

Together with accounts-guest, there are many unused sessions after some time. I think we need a mechanism to delete all session values of sessions that are not used for a...

This fixes the issue where UserSession methods can not be used in onLogin etc callbacks and publish functions. https://github.com/BenjaminRH/meteor-user-session/issues/1 The fix, briefly, is to not call Meteor.userId() unless userId is...

var clientid=Random.id(); UserSession.set("songsearcher", clientid); console.log(clientid + UserSession.get("songsearcher")); Developer Tools returns : UserSession.set @ VM106 benjaminrh_user-session.js?6483f8d2c775bfb11a28a707104fc5cbd79bb6bb:61Template.download.events.click button @ VM120 client.js?c0ec6b46a653f555e1b4403f9469cd8483ddc49c:13(anonymous function) @ VM112 blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3502Template._withTemplateInstanceFunc @ VM112 blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476(anonymous function) @ VM112 blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3501(anonymous...

The code in `common.js` calls Meteor.userId(), and if that code is called from within a publish function, Meteor will issue this error: ``` Meteor.userId can only be invoked in method...