Modified to support the new 'express-session' package taken from 'connect' package