在cookie中设置用户位置 - 高效的工作流程?

时间:2012-10-17 08:29:27

标签: cookies nginx

用户访问网站

Has user got "location" cookie set?

    Yes - Print "country" value from cookie on page
           - Finish

    No  -  Do geoip look up with nginx

        Was this successful?

            Yes - Store value in cookie
                   - Print "country" value from cookie on page
                   - Finish

            No  - Do not print "country" on page
                   - Finish

这是最有效和最合适的工作流程吗?

0 个答案:

没有答案