mevdschee / php-crud-api

Single file PHP script that adds a REST API to a SQL database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Update User Information

scriptPilot opened this issue · comments

After dbAuth login, the details in $_SESSION are not updated when they are updated in the database - for example the username. What is the best practice to keep the $_SESSION details updated?

Currently I run a request to the database at the top of the api.php file to update $_SESSION on each call.

Linked to #935