To resolve that problem, go to phpMyAdmin, and click on the top left "Empty Session Data" icon like the following screenshot. The issue will be settled.
If you are facing an issue of loading react UseEffect twice, then go to your application "src>>index.js" file. You will get the code like the following snippets. Old React Code Remove that old react code by the following snippets. New Code It will solve the issue. Happy coding!