You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The express-session MemoryStore and Redis implements this, im just thinking this could be implemented here too.
We want to limit the concurrent sessions per user. I could just query all sessions from sessions collection but Im thinking if we could do it by implementing the .all function. Thanks
I already added this under my node_module and this works.
Thank you very much. I am a newcomer to this. I have 2 problems when I modify this.One is the 'findAsync is not defined', solution: I add find string in setCollection like this ['find'...].forEach(method...;
The other is findAsync return mongodb cursor in my situation, my solution is use cursor.toArray(),then return a new Array.
Any suggestion for me,Thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The express-session MemoryStore and Redis implements this, im just thinking this could be implemented here too.
We want to limit the concurrent sessions per user. I could just query all sessions from sessions collection but Im thinking if we could do it by implementing the .all function. Thanks
I already added this under my node_module and this works.
all(callback) { return this.collectionReady() .then(collection => collection.findAsync({ $or: [ { expires: { $exists: false } }, { expires: { $gt: new Date() } }, ] })) .asCallback(callback); }
The text was updated successfully, but these errors were encountered: