diff --git a/package.json b/package.json index 1e3ad20..7ad9bf0 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,6 @@ "think-logger3": "^1.0.0", "think-model": "^1.0.0", "think-model-mysql": "^1.0.0", - "think-session": "^1.0.0", - "think-session-file": "^1.0.5", "thinkjs": "^3.0.0" }, "devDependencies": { diff --git a/src/common/config/adapter.js b/src/common/config/adapter.js index ffac942..e3a76ad 100644 --- a/src/common/config/adapter.js +++ b/src/common/config/adapter.js @@ -1,5 +1,4 @@ const fileCache = require('think-cache-file'); -const fileSession = require('think-session-file'); const mysql = require('think-model-mysql'); const {Console, File, DateFile} = require('think-logger3'); const path = require('path'); @@ -46,25 +45,6 @@ exports.model = { } }; -/** - * session adapter config - * @type {Object} - */ -exports.session = { - type: 'file', - common: { - cookie: { - name: 'thinkjs' - // keys: ['werwer', 'werwer'], - // signed: true - } - }, - file: { - handle: fileSession, - sessionPath: path.join(think.ROOT_PATH, 'runtime/session') - } -}; - /** * logger adapter config * @type {Object} diff --git a/src/common/config/extend.js b/src/common/config/extend.js index 88aff33..57f35f8 100644 --- a/src/common/config/extend.js +++ b/src/common/config/extend.js @@ -1,9 +1,7 @@ const model = require('think-model'); const cache = require('think-cache'); -const session = require('think-session'); module.exports = [ model(think.app), cache, - session ];