You can store PHP sessions in memcached and then access those session values in nginx to route traffic accordingly. My use case was a WebRTC server (janus-gateway) that I wanted to be hidden behind a PHP authentication barrier. First PHP must be set to store sessions in memcached. Instructions can be found here. I found the memcached extension had a bit more options than the memcache extension (notice the ‘d’ Read More ...
Categories: Memcached, nginx, PHP, Programming, Web