So I am making a login and a profile page using NextJS and a PHP-api.
Everything is working fine in backend, meaning trying to login and get userdata from profile is working as i should when using Postman. I then get all userdata as I should from current session.
It is however not working when trying to fetch the session using Axios from NextJS.
Does anyone know why I then can't fetch the session? Is it because it is two different calls?
This is the error I am getting in console (even tough I have session_start() on line 1):
Warning: Undefined array key "valid" in C:\xampp\htdocs\nettsider\next_js\drikke-4real\pages\api\getManufacturerData.php on line 11
source https://stackoverflow.com/questions/70643685/session-is-not-continuing
Comments
Post a Comment