Comments (9)
from iron-sessionstorage.
Also fuck generality, I'll do this as per-backend param.
from iron-sessionstorage.
Will you use this :https://github.com/zoumi/iron_config ?
from iron-sessionstorage.
from iron-sessionstorage.
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.
from iron-sessionstorage.
Ah, I see. My mistake then. New to Rust, and still trying to figure out the syntax in some cases.
from iron-sessionstorage.
Is this implemented for the redis backend yet? If yes, could you give me a small example?
from iron-sessionstorage.
from iron-sessionstorage.
Related Issues (11)
- Ability to clear session
- Update the cookie dependency HOT 3
- Unsetting session values? HOT 1
- Redis backend doesn't regenerate iron _session_id HOT 5
- bump new version
- OpenSSL Issue HOT 6
- use same cookie version as hyper HOT 5
- Access session in BeforeMiddleware panics HOT 3
- Is it possible to have the cookies in "http_only" and "secure" mode? HOT 3
- Session cookie not cleared if logout route is not at the root level HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iron-sessionstorage.