help: How to track user session with fastcgi
yingyuan at staff.sina.com.cn
Thu Oct 25 14:28:29 MSD 2007
ip_hash can direct requests to consistent backends, but it can't
generate session id used by fastcgi processes. All I need is the method
to generate session id which would be used by fastcgi processes and
record the session id generated into log file.
Maybe my description was obscure before. Thank you very much anyhow.
> 2007/10/25, Yingyuan Cheng <yingyuan at staff.sina.com.cn
> <mailto:yingyuan at staff.sina.com.cn>>:
> I want to use nginx as web front, dispatching uri of dynamic
> content to
> fastcgi processes. How to track user session in such situation?
> I reviewed ngx_http_userid_module, which generates new user id if
> special cookie key not found. But it has some cons:
> - If this is the first time user visiting site page, nginx can't
> user id with just visited page into log file
> - If the first visited page is generated by a fastcgi process, the
> fastcgi process can't get user id just generated by
> Is there any way to work out? Thanks.
> Best Regards
> 上海我要网络发展有限公司 运维部
> 上海浦东新区峨山路91弄200号新鹏大厦6楼 邮编 200127
> Tel: +86(021)58815151-5160
> Fax: +86(021)50904695
> QQ: 34849502
> MSN: jsq_yy at hotmail.com <mailto:jsq_yy at hotmail.com>
> Email: jiaosq at mail.51.com <mailto:jiaosq at mail.51.com>
> Visit us: http://www.51.com
More information about the nginx