Git Product home page Git Product logo

Comments (9)

untitaker avatar untitaker commented on June 3, 2024

rwf2/cookie-rs#62

from iron-sessionstorage.

untitaker avatar untitaker commented on June 3, 2024

Also fuck generality, I'll do this as per-backend param.

from iron-sessionstorage.

zoumi avatar zoumi commented on June 3, 2024

Will you use this :https://github.com/zoumi/iron_config ?

from iron-sessionstorage.

untitaker avatar untitaker commented on June 3, 2024

from iron-sessionstorage.

frjonsen avatar frjonsen commented on June 3, 2024

Is there currently a simple way of doing this for SignedCookieBackend? I'm currently doing it by using SignedCookieBackend::set_cookie_modifier, but this takes takes a function which takes an immutable cookie. I end up having to do something like this:

fn set_cookie_attributes(cookie: Cookie) -> Cookie {
    let mut c = cookie.clone();
    c.max_age = Some(1);
    c
}

While it does work, it seems a bit unnecessary.

from iron-sessionstorage.

untitaker avatar untitaker commented on June 3, 2024

from iron-sessionstorage.

frjonsen avatar frjonsen commented on June 3, 2024

Ah, I see. My mistake then. New to Rust, and still trying to figure out the syntax in some cases.

from iron-sessionstorage.

janhohenheim avatar janhohenheim commented on June 3, 2024

Is this implemented for the redis backend yet? If yes, could you give me a small example?

from iron-sessionstorage.

untitaker avatar untitaker commented on June 3, 2024

from iron-sessionstorage.

Related Issues (11)

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.