session-store

set up mssql-session-store in node.js

左心房为你撑大大i 提交于 2020-12-05 12:40:13
问题 I'm trying to use mssql-session-store as nodejs (express) store for session: https://www.npmjs.com/package/mssql-session-store This is how it should be configured(from npm page): app.use(session({ secret: 'keyboard cat', resave: false, saveUninitialized: false, store: new MssqlStore(options) // see options below })); var options = { connection: existingConnection, ttl: 3600, reapInterval: 3600, reapCallback: function() { console.log('expired sessions were removed); } }; My problem is with the

Clearing a Rails Session during Development

人盡茶涼 提交于 2019-12-06 00:07:41
问题 How do I clear the rails session so I can start with a fresh slate? I know I could just nullify each of the session variables with session[:my_var] = nil , but is there a rake task or something that knows how to restore the session data to its most basic form? I'm using Spree and it stores a few properties in the session that I would like to clear out to see what's going on in the background, such as order_id , order_token , user_credentials_id , etc. I'm using SQLite3 回答1: rake db:sessions