Forum Discussion
sk_330490
Nimbostratus
Nov 15, 2017More details on F5 APM getsid and getkey
I have tried searching for more info on getsid and getkey for ACCESS::user function.
What does these do and what are the differences? I can see only a one liner on F5 page. Can anyone help pls.
Irule example which i was going through has below entries, what do they do?
set user_key {}
append user_key $http_user "." $user_hash MD5 hash / hex encoded userpassword+IP+URL
set apm_cookie_list [ACCESS::user getsid $user_key]
set apm_cookie [ACCESS::user getkey [lindex $apm_cookie_list 0]]
HTTP::cookie insert name MRHSession value $apm_cookie
- Lee_Sutcliffe
Nacreous
These are related to the outputs from the
command line utility. (or GUI equivalent)sessiondump
https://devcentral.f5.com/wiki/iRules.ACCESS__user.ashx
sets a variable 'user_key' as an empty listset user_key {}
appends the list with other information based on other variables (defined elsewhere)append user_key $http_user "." $user_hash MD5 hash / hex encoded userpassword+IP+URL
returns the list of created external SIDs which is associated wit the specified key and stores in variable 'apm_cookie'set apm_cookie_list [ACCESS::user getsid $user_key]
Returns the original SID for specified hash of SID (uses list to return the key)set apm_cookie [ACCESS::user getkey [lindex $apm_cookie_list 0]]
inserts a cookie based on the returned session valuesHTTP::cookie insert name MRHSession value $apm_cookie
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