Forum Discussion
Triggerman_1128
Nimbostratus
Mar 29, 2010Persistence based on Querystring
Howdy, we would like to persist based on a querystring. However, there would be two sources (clients) with the same querystring.
For example:
1. client one sends a reques...
hoolio
Cirrostratus
Mar 29, 2010Hi,
You can parse the query string parameter value and use it to persist off of. Will clients always send the parameter in each request? If so, here's an example to get started with:
when HTTP_REQUEST {
Check if query string parameter named SessionID has a value
http://devcentral.f5.com/wiki/default.aspx/iRules/uri__query
set sid [URI::query "?&[HTTP::query] &SessionID]
if {$sid ne ""}{
Persist off of the session ID value
persist uie $sid
}
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects