3 ms·
Typically, before stuff like JWT was popular, you would store a session in the db and the session id in a cookie. Then you would hit the db each request to chec
by dyeje 7y ago
Typically, before stuff like JWT was popular, you would store a session in the db and the session id in a cookie. Then you would hit the db each request to check if the session was valid.
- ossworkerrights 7y agoWell not really. Storing session data in the db can hit your performance pretty bad. Storing them in mem is a better option.
- latortuga 7y agoThese are not mutually exclusive options. Redis is a database and runs in memory.
- ossworkerrights 7y agoActually no, it’s an “in-memory data structure store, used as a database, cache and message broker.”.
- dyeje 7y agoYea, that's why people moved to auth headers.