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
版权声明:本文标题:python - Is a `ROUTEID` set by `Header add Set-Cookie`a locally stored cookie? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744851425a2628517.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论