CellarHQ / cellarhq.com

The CellarHQ New Newness
https://www.cellarhq.com
MIT License
29 stars 5 forks source link

Add new session storage backend for ratpack-session #22

Closed robzienert closed 1 year ago

robzienert commented 10 years ago

It looks like ratpack-session only supports an in-memory session storage right now. Create a new storage backend that uses either cookies or PostgreSQL that we can use as a drop-in replacement (SessionStorage interface is what is used in ratpack-pac4j and elsewhere in the app)

johnrengelman commented 10 years ago

hahaha

johnrengelman commented 10 years ago

So, I started looking at this, but got lost pretty quickly in the Ratpack API. It seems like the API doesn't expose access to the Cookies at the point were you write/read data from the session. I think it can be made available via the Guice injection, I just need to try a couple things with it first.

robzienert commented 10 years ago

Yeah, the API can get hairy pretty quickly.

robzienert commented 10 years ago

Related: https://github.com/ratpack/ratpack/issues/447