Forum Discussion
iRule to store cookie in table
Hi,
Thanks a lot for help. Good point about difficulty of storing multiple values in table. Maybe if I explain issue better you can advice some better solution.
Authentication cookie is set by another system than session cookie. I need to find efficient way to glue together such values:
User-Agent X-Forwarded-For (real client IP should be extracted in case there were few intermediary proxies on the path to BIG-IP) ASP.NET_SessionId
So in the end when specific URI will be requested (or optionally when POST to specific URI will be performed) it can be easy to verify if for given authentication cookie all above variables are identical as the ones when authentication cookie was send.
So when request to authentication URI is issued by new client I am collecting: User-Agent X-Forwarded-For ASP.NET_SessionId (already set during previous requests by application server)
Then when response after successful authentication is send with Set-Cookie setting my auth cookie it's recorded along mentioned variables.
Then when request to URI that can only be accessed by request with valid auth cookie arrives I can easily lookup if auth cookie and all mentioned varaibles are identical as at the time when auth cookie was issued.
I suspect that it can be done creating key that is composed from all those elements (with no stored)?
Or maybe it's better to use my auth cookie as key and store mentioned variables (as one string) in value
Then I am doing lookup, if entry exist I am comparing request provided values with ones stored in value?
Piotr
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