http://www.open-open.com/lib/view/open1326513753155.html http://tendyming.iteye.com/blog/1815136 I'm just moving the bricks, my moral skills are too low, I'll wait for the experts to discuss
The common solutions are roughly divided into three types 1. Ensure that each user accesses the same server 2. Save all sessions in a public place, or have all sessions on each server 3. Bring the session back to the client, and bring it back to the server every time you visit
My experience is that the browser cannot support SESSION once it is closed...
http://www.open-open.com/lib/view/open1326513753155.html
http://tendyming.iteye.com/blog/1815136
I'm just moving the bricks, my moral skills are too low, I'll wait for the experts to discuss
The common solutions are roughly divided into three types
1. Ensure that each user accesses the same server
2. Save all sessions in a public place, or have all sessions on each server
3. Bring the session back to the client, and bring it back to the server every time you visit
nginx
做负载均衡器,使用iphash
进行分流,可以保证每个用户每次访问都是统一服务器,也就不存在session
Distributed problem.I directly use redis as the carrier of session