Forum Discussion
dragonflymr
Dec 08, 2015Cirrostratus
Hi Kai,
Great post. Plenty of data I have to analyze - I ma quite new to iRules, not programmer and HTTP expert - so it's not so easy for me to figure out things on the fly :-(
Anyway my plan is to:
- Use master subtable (probably with splitting) to store all generated cookie values (from Set-Cookie in HTTP_RESPONSE) - in iRule attached to VS it will be only used to enforce limit of concurrent HTTP sessions. So we would like to issue given number of sessionID via cookies and then stop to accept any new HTTP request without know cookie value returned. So -count will be used on one or more master subtables for that.
- New HTTP session will be accepted again when number of keys in master sutable/s will drop below limit (either by expired lifetime or being deleted)
- Later on, this master subtable can be as well used to be able to reference session specific subtables (we need to retrieve subtable names to be able to iterate keys stored in this specific subtables)
- I do not need master subtable to reference session cookie named subtables as I am extracting session id from cookie at runtime - so when request comes, I am getting my session value from cookie and then checking if subtable named with session id value contains any key (-count). If yes session is valid, if no session is not valid.
- Any necessary keys can as well be set on session subtable at runtime because I know subtable name and key names to be set. Values for specific keys are retrieved according to some iRule created logic.
Any flaw in above? If not I am all good and it's time to create code - hopeful good one performance wise :-)
Thanks again for time and all advises you gave mi!
Piotr