I
I
IsaevDev2016-05-21 21:01:59
linux
IsaevDev, 2016-05-21 21:01:59

Is it possible to store private user data in text files instead of a database?

Let's say there is some text/numeric id that uniquely identifies the user. It doesn't matter where I get it from.
The /users folder contains *.json files. File name == user id. These are some user settings + info - hashed password, email. mail and so on.
At the nginx / apache level, we prohibit giving json files in principle
. Tell me, does such a solution have the right to exist? Are there security issues here?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex Me, 2016-05-21
@IsaevDev

Tell me, does such a decision have the right to exist? Are there security issues here?

has of course. There will be no problems with the proper server config.
For example, Grav CMS works in the described way like - it is completely flat file cms
Given that 1 file = 1 user, then there will be no problems with speed for the client. Only in the listings of users will of course appear

I
Immortal_pony, 2016-05-21
@Immortal_pony

The solution has a right to exist, this is how sessions work in PHP.

Z
zooks, 2016-05-21
@zooks

There will be speed issues. If there is no database, then you can use SQLite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question