Forum Discussion
felix001_29321
Nimbostratus
May 30, 2012Creating a HTTP session ID
Im looking for a way to create/insert a session id for each HTTP request that goes through the LB. The insertion of the header will be straight forward but its the creation of the session ID im still ...
felix001_29321
Nimbostratus
May 31, 2012Hi,
Thanks for your response. In the end I created an irule that meets the job. Im just now looking into how this will effect performance.
when HTTP_REQUEST {
set id "[IP::client_addr][TCP::client_port][IP::local_addr][TCP::local_port][expr { int(100000000 * rand()) }]"
binary scan [md5 $id] H* md5var junk
HTTP::header insert X-ID $md5var
}
What are you thoughts on this from a performance perspective ?
Thanks again,
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