-
I see I can store sessions in Redis, filesystem and cookies. Is there also a way to store them in the DB? Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Kkeller83 No, there's no provided facility to store sessions in DB. This is actually a design decision, as in my experience sessions cause too much load on relational databases, and in general I strongly suggest not to do that. It would be theoretically still be possible writing a custom session Pipe for that, subclassing |
Beta Was this translation helpful? Give feedback.
@Kkeller83 No, there's no provided facility to store sessions in DB.
This is actually a design decision, as in my experience sessions cause too much load on relational databases, and in general I strongly suggest not to do that.
It would be theoretically still be possible writing a custom session Pipe for that, subclassing
BackendStoredSessionPipe
(https://github.com/emmett-framework/emmett/blob/master/emmett/sessions.py#L130)