Replies: 4 comments 6 replies
-
I agree. Session configuration should support different "drivers" like Nitro storage does. Encrypt and store the whole session data in a cookie is one way to do it, but not always the best way (depending on the data size, security requirements, etc.). More often than not you need a traditional "Session id in the cookie, session data on the server" solution. |
Beta Was this translation helpful? Give feedback.
-
We had the same use case and have been using express-session like approach backed by unstorage. https://www.npmjs.com/package/@scayle/h3-session Maybe this is helpful |
Beta Was this translation helpful? Give feedback.
-
You can try https://www.npmjs.com/package/@kikiutils/nitro-session. |
Beta Was this translation helpful? Give feedback.
-
https://h3.unjs.io/examples/handle-session However, there are plans to make it configurable at the
If you want to use different drivers, or would like to explore alternatives, definitely check the mentioned libraries 😉 |
Beta Was this translation helpful? Give feedback.
-
hi everyone, currently when i want to store session in h3/nitro is implement
useSession
, butuseSession
is save the data inside cookie, i want to store session data in server side like express-session, how i can achieve it?Any info will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions