bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
320 stars 111 forks source link

How to replicate sessions between app pools #37

Closed sumantfordev closed 7 years ago

sumantfordev commented 7 years ago

if i have 2 nginx webserver running behind a Load Balancer, is it possible to replicate sessions between 2 servers?

bungle commented 7 years ago

Just use storage like redis or memcached? Remember to set the same secret on each.

bungle commented 7 years ago

Or use cookies storage.