Skip to content

Conversation

@karliatto
Copy link
Member

@karliatto karliatto commented Jan 22, 2017

Approach A for:

  • Modified tearDown function in 'test/manager.js' to clear sessions as suggested using 'express-session' module.

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant