Why is it good save to save sessions in the database?

后端 未结 6 999
逝去的感伤
逝去的感伤 2020-12-04 11:05

I have seen that codeigniter have facility to save session values in database.
It says saving session in database is good security practice.

But I think saving

6条回答
  •  情深已故
    2020-12-04 11:29

    It doesn't improve security in any way.

    The most common and reasonable pattern to store sessions in database is when you have several frontend servers, so you need a shared session storage for them.

    For downvoters: a file in filesystem isn't less secured than a record in database.

提交回复
热议问题