Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out how to do session expiration #3

Open
untitaker opened this issue Nov 4, 2016 · 9 comments
Open

Figure out how to do session expiration #3

untitaker opened this issue Nov 4, 2016 · 9 comments
Labels

Comments

@untitaker
Copy link
Member

No description provided.

@untitaker untitaker added the bug label Nov 4, 2016
@untitaker
Copy link
Member Author

rwf2/cookie-rs#62

@untitaker
Copy link
Member Author

untitaker commented Nov 6, 2016

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

@untitaker untitaker changed the title Figure out how to do session expiration generically Figure out how to do session expiration Nov 6, 2016
@zoumi
Copy link
Contributor

zoumi commented Feb 12, 2017

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

@untitaker
Copy link
Member Author

untitaker commented Feb 12, 2017 via email

@frjonsen
Copy link

frjonsen commented Mar 1, 2017

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.

@untitaker
Copy link
Member Author

untitaker commented Mar 1, 2017 via email

@frjonsen
Copy link

frjonsen commented Mar 1, 2017

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

@janhohenheim
Copy link

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

@untitaker
Copy link
Member Author

untitaker commented Mar 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants