0
Guys, I’m in doubt here.
Inside my control panel, I will need to get user id, email, password (only to change password) name, over name, etc... The ideal would be to save all this in a session at login time or whenever I need it, I refer it directly to the database?
Please do not consider this as a question that will have an opinion-based answer. I really need this push so I can continue my project!
Thanks.
Think about it: if you save in session and the user logs in to another computer, change the data and save, go back to the first computer, which has the original data in the session, change again and save. What should be the user’s data? What did it change on the first or second computer?
– Woss
Eita kkk. But, like this, I will create a system to dislodge the person if another session is started in a different place. Even so, the best is the consultation?
– Lucas de Carvalho
About being opinionated, it depends a lot on how you formulate the question. You can always ask for a comparison between two things, with pros and cons, and make your decision alone according to your context. To ask for an opinion is to hope that there is a "correct" answer. It doesn’t exist, you have to define what to use based on what you know, your goals and your specific context.
– bfavaretto