help: How to track user session with fastcgi

Yingyuan Cheng yingyuan at staff.sina.com.cn
Thu Oct 25 13:22:09 MSD 2007


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 record
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 ngx_http_userid_module

Is there any way to work out? Thanks.


--
yingyuan






More information about the nginx mailing list