Forum Discussion
Karthik_Krishn1
Cirrostratus
May 05, 2016Pull Username from session A into Session B
Suppose there are two VIP's and each has been assigned it's own access policy. VIP1 is the primary page where the user logs on and is SSO'ed into the primary portal. VIP2 is the secure VIP and links ...
Yann_Desmarest
Cirrus
May 05, 2016Hello,
There is no easy way to achieve that. You can get the username of a session by using the following command :
set username [ACCESS::session data get -sid [HTTP::cookie MRH_Session] session.logon.last.username]
The hard thing is that the session cookie of VIP1 is not in requests that goes through VIP2. I think you will have to inject a new cookie from the VIP1 to the end user as the following :
HTTP::cookie insert name MRH_Session1 value $MRHSession path / domain vip2.hostname.com
The important thing is that the domain of the cookie contains the hostname of VIP2 so that you can then trap the session value of VIP1 to use it within an irule on VIP2.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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