B
B
BonBon Slick2017-09-18 16:48:45
Sessions
BonBon Slick, 2017-09-18 16:48:45

What is the best way to store sessions in a database or files?

What is more reliable and scalable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RoflanDaniil, 2017-11-03
@BonBonSlick

The db is the file(s). It's just that a finite set of operations has already been defined on these files.
Reliability and scalability parameters depend on the specific database.
Sessions are no different from other data. If the loss of sessions in the last N minutes is not a tragedy, then you can store in redis, saving data to disk every N minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question