2
私は印刷セッションその秘密せずにセッションを使用する「7OvNNopdEjLcal32ObN95MnVnRuzrZpI」を得たID =「52」の場合のように、私は純粋な値が欲しいノードJS
app.jsが
ファイルsecret.Butによって変換方法app.use(bodyParser.json());
app.use(session({secret: 'ssshhhhh'}));
app.use(bodyParser.urlencoded({ extended: true }));
route.jsは
app.post("/login", function(req, res) {
var sess = req.session;
...
...
sess.id = results[0].client_id;
//res.end('done');
console.log(sess.id);
ありがとうございます... –