Forum Discussion
Session migration on APM
This is an additionnal information about Youssef answer.
You can get SID from another session if you know the userkey format.
The default user key format is
.
set OTHER_POLICY "/Common/access_policy_1"
set apm_username [ACCESS::session data get session.logon.last.username]
set apm_cookie_list [ ACCESS::uuid getsid "${OTHER_POLICY}.$apm_username" ]
set first_session [ lindex $apm_cookie_list 0 ]
set password [ ACCESS::session data get -sid first_session -secure session.logon.last.mypass]
There is only one restriction... for security reasons, the session variable session.logon.last.password can't be read from irule... you have to use a variable assign from the first policy to copy session.logon.last.password to session.logon.last.mypass
I should recommend to use multi domain SSO instead of multiple Access Policies if you want to configure linked web sites.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
