I wrote a more complex web server with sessions using bash (really nc is the core)

https://github.com/Krowemoh/bash-server

That’s really cool! I’m trying to work out how to do it without nc, did you find any good leads when you built this?

Like this you can do it without nc https://github.com/dzove855/Bash-web-server