Learn-by-doing / bitstarter

A crowd funding website that uses bitcoin
MIT License
23 stars 28 forks source link

issue91 clearing session table after each test | Approach 'A' #106

Open karliatto opened 7 years ago

karliatto commented 7 years ago

Approach A for:

It is working ok like this, but I am not completely sure if the approach of using the global variable 'app' instead of the declaring varibles below is better, so I will create other pull request with the other approach.


var session = require('express-session');
var MySQLStore = require('express-mysql-session')(session);
var sessionStore = new MySQLStore(app.config.db);