thinkjs/template/config/session.ts
2016-01-07 16:50:59 +08:00

22 lines
368 B
TypeScript

/// <reference path="../../../typings/thinkjs/think.d.ts" />
'use strict';
/**
* session configs
*/
export default {
name: 'thinkjs',
type: 'file',
secret: '<SECRET>',
timeout: 24 * 3600,
cookie: { // cookie options
length: 32,
httponly: true
},
adapter: {
file: {
path: think.getPath('common', 'runtime') + '/session',
}
}
};