upyun-dev / session Goto Github PK
View Code? Open in Web Editor NEWThis project forked from expressjs/session
Simple session middleware for Express
License: MIT License
This project forked from expressjs/session
Simple session middleware for Express
License: MIT License
app.use(session(
{
secret: 'keyboard cat',
name: 'awesome',
cookie: {maxAge: 60000, samesiteWithoutSecure: true},
}
));
使用时可以在 cookie 的 options 里增加一个 samesiteWithoutSecure
参数,如果该参数不为 true
, 则与原来的行为一致。如果该参数为 true
则在写入 cookie 时额外写入一个名为 awesome-secure
(名字从传入的 name
推导,比如加上 -secure
后缀) 的 cookie,这个 cookie 满足 SameSite: None; Secure
,其他与名为 awesome
的 cookie 一致。读取时保持现有策略
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.