Forum Discussion
Multiple Cookies/Sessions same endpoint
- Sep 19, 2017
Solved.
Session cookies are automatically bound to the site from which they came. I can have 10 cookies of the same name each from a different site and the browser will present the right cookie depending on the site I am going to access. To solve my problem above will use different site names for each session from the same user.
mysite.virtualserver.com A X.X.X.X mysite1 CNAME mysite mysite2 CNAME mysite mysite3 CNAME mysite mysite4 CNAME mysite mysite5 CNAME mysite
Where X.X.X.X is address of the virtual server handling 100 web management interfaces behind it using the iRule outlined above to route traffic. The above supports 6 concurrent sessions from the same end user.
Cannot share iRule but here is pseudo code.
--- pseudo code ---
if /backendselection lookup destination address
encrypt destination address
create headers to set cookie with encrypted address
respond with 302 redirect and headers
exit irule.
if cookie not found
reject connection
if decrypt fails
reject connection
get ip address from decrypted cookie
send connection to backend address
--- end pseudo code ---
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com