var express = require('express');
var app = express();
app.use(express.cookieParser());
app.use(express.session({secret: '1234567890QWERTY'}));
app.get('/awesome', function(req, res) { req.session.lastPage = '/awesome'; res.send('Your Awesome.'); });
No comments:
Post a Comment