I am relatively new to arduino coding, so pls help me and explain it also.
I am wanting to make a arduino webserver, where if you login, you can see sensor data from pin A0, and have a option to "whitelist" yourself. (aka inject cookie, so next time dont have to login). and pls help me make it client-based, so its cookies stored in browser cache, not eeprom or smth.
I asked chatgpt for help, but "they" was useless. I am using Nano esp32, if that matters.
Thanks,
I would say web servers are entirely HTTP things; and cookies can be implemented without JavaScript. Implementing web servers on Arduino often includes manually sending response headers. The Set-Cookie header is one of those, which would be sent after a valid login.
The browser will store this cookie, and then for every request to that server, include a Cookie header in the request. The web server application can that look for that header, and act accordingly.