get all sessions (user connected) with express-session passport.js connect-mong
up vote
0
down vote
favorite
i do a hard-search in google , here in SO, and find nothing useful, so
i am working with passportjs for authentication users in express app , and express-session with connect-mongo to manage sessions,
to get all connected users i have to get the sessions in 'sessions' collection in mongo database, so is there a way to get them all without using:
mongoose.connection.db.collection('sessions, ...);
i think all sessions stored in sessionStore but how i get to it , i don't know
express passport.js express-session connect-mongo
add a comment |
up vote
0
down vote
favorite
i do a hard-search in google , here in SO, and find nothing useful, so
i am working with passportjs for authentication users in express app , and express-session with connect-mongo to manage sessions,
to get all connected users i have to get the sessions in 'sessions' collection in mongo database, so is there a way to get them all without using:
mongoose.connection.db.collection('sessions, ...);
i think all sessions stored in sessionStore but how i get to it , i don't know
express passport.js express-session connect-mongo
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
i do a hard-search in google , here in SO, and find nothing useful, so
i am working with passportjs for authentication users in express app , and express-session with connect-mongo to manage sessions,
to get all connected users i have to get the sessions in 'sessions' collection in mongo database, so is there a way to get them all without using:
mongoose.connection.db.collection('sessions, ...);
i think all sessions stored in sessionStore but how i get to it , i don't know
express passport.js express-session connect-mongo
i do a hard-search in google , here in SO, and find nothing useful, so
i am working with passportjs for authentication users in express app , and express-session with connect-mongo to manage sessions,
to get all connected users i have to get the sessions in 'sessions' collection in mongo database, so is there a way to get them all without using:
mongoose.connection.db.collection('sessions, ...);
i think all sessions stored in sessionStore but how i get to it , i don't know
express passport.js express-session connect-mongo
express passport.js express-session connect-mongo
asked yesterday
CollinsBssi
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372153%2fget-all-sessions-user-connected-with-express-session-passport-js-connect-mong%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown