mozilla / node-client-sessions

secure sessions stored in cookies
Mozilla Public License 2.0
759 stars 104 forks source link

Session size limit and compression #119

Closed vallettea closed 7 years ago

vallettea commented 7 years ago

Hello, it seems that our session are too big. I there a way to enable compression before encryption ? Thanks

seanmonstar commented 7 years ago

There is not. If your sessions are that huge, you could either compress the data yourself before setting to a field on the session object, or store the session on your server.