chill117 / express-mysql-session

A MySQL session store for the express framework in node
MIT License
313 stars 106 forks source link

Some things are missing in the documentation #113

Closed mpgr04 closed 3 years ago

mpgr04 commented 3 years ago

I have been trying to figure out how to read data from the SessionStore for quite some time now. Since there are the methods .get and .all.

But I have no idea how to use them, because there is nothing written in the documentation.

It would be great if you could somehow clear this up

chill117 commented 3 years ago

This module implements the API as described in the express-session module. So it's possible to get all the sessions from the store as follows:

sessionStore.all(function(error, sessions) {
   // error or sessions array returned by callback. 
});
mpgr04 commented 3 years ago

Oh, I get it now, I just tried it and it works. Thanks for the help!