Forum Discussion
Lee_Sutcliffe
Nov 15, 2017Nacreous
These are related to the outputs from the
sessiondump
command line utility. (or GUI equivalent)
https://devcentral.f5.com/wiki/iRules.ACCESS__user.ashx
set user_key {}
sets a variable 'user_key' as an empty list
append user_key $http_user "." $user_hash MD5 hash / hex encoded userpassword+IP+URL
appends the list with other information based on other variables (defined elsewhere)
set apm_cookie_list [ACCESS::user getsid $user_key]
returns the list of created external SIDs which is associated wit the specified key and stores in variable 'apm_cookie'
set apm_cookie [ACCESS::user getkey [lindex $apm_cookie_list 0]]
Returns the original SID for specified hash of SID (uses list to return the key)
HTTP::cookie insert name MRHSession value $apm_cookie
inserts a cookie based on the returned session values