Does expressjs/nodejs have support (via a module?) for database sessions? I come from the world of PHP/CodeIgniter and I’ve enjoyed the features of storing session data in a mysql database table.
Is this approach used with nodejs web apps?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.
Redis
MySQL
https://github.com/mren/connect-session-mysqlBroken Linkhttps://github.com/CarnegieLearning/connect-mysql-sessionOld, UnsupportedPostgreSQL
MongoDB
Memcached
CouchDB
Riak
SQLite
File-based
Kyoto-cabinet
Azure
nStore
node-dirty
VOC (?)
It’s quite simple to implement your own, see documentation here.