Git Product home page Git Product logo

session's People

Contributors

adriantanasa avatar aishwar avatar aliceklipper avatar beeman avatar benheymink avatar benjaminvadant avatar brendonparker avatar chill117 avatar cianclarke avatar citium avatar defunctzombie avatar dougwilson avatar dwhieb avatar fishrock123 avatar gabeio avatar gajus avatar ghinks avatar heathcliff-hu avatar jamesmgreene avatar jankal avatar joewagner avatar jonathanong avatar konteck avatar lindsaymacvean avatar mscdex avatar scottnonnenberg avatar slumber86 avatar solzimer avatar wallali avatar zheshishei avatar

Watchers

 avatar

session's Issues

使用方式调整

使用

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 一致。读取时保持现有策略

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.