admin管理员组

文章数量:1404764

I have an Apache2 server running as reverse proxy and behind this proxy there are multiple workers running a local shiny for python server. To always use the same worker for one session I use these code lines in my Apache2 config:

(...)

Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED

<Proxy balancer://myclusterhttp>
    BalancerMember http://127.0.0.1:8080 route=1
    BalancerMember http://127.0.0.1:8081 route=2
    BalancerMember http://127.0.0.1:8082 route=3
    ProxySet stickysession=ROUTEID
</Proxy>

<Proxy balancer://myclusterws>
    BalancerMember ws://127.0.0.1:8080 route=1
    BalancerMember ws://127.0.0.1:8081 route=2
    BalancerMember ws://127.0.0.1:8082 route=3
    ProxySet stickysession=ROUTEID
</Proxy>

(...)

I now want to make a pop-up that tells the user that cookies are used. This popup should only popup at the first start. If I got this correct the cookie I am using right now is a session cookie that is not stored anywhere on the local machine of the user. Is it even possible to check, if the user has already seen the pop-up without introducing a real cookie? And if so, does anyone know how to forward any info from Apache2 to my shiny process?

本文标签: pythonIs a ROUTEID set by Header add SetCookiea locally stored cookieStack Overflow