Forum Discussion
Demeter_Luo_168
Jun 19, 2016Nimbostratus
APM: Why can't get the session.user.sessionid in the ACCESS_ACL_ALLOWED?
Hi Friends
Why can't get the session.user.sessionid in the ACCESS_ACL_ALLOWED? Thanks
My iRules:
Codewhen ACCESS_POLICY_COMPLETED {
set hsl [HSL::open -proto UDP -pool pool_172.16.0.21_s...
Yann_Desmarest
Jun 19, 2016Cirrus
Hi,
Maybe you can just get the session id from the LastMRH_Session header ?
You can get this information by changing your irule to something similar :
when ACCESS_POLICY_COMPLETED {
set hsl [HSL::open -proto UDP -pool pool_172.16.0.21_syslog]
set mysession "session_id=[ACCESS::session data get session.user.sessionid]"
set timestamp [clock format [clock seconds] -format "%d/%h/%Y:%T %Z" -gmt 1 ]
log local0. "access policy completed get session id"
}
when ACCESS_ACL_ALLOWED {
set mysession "session_id=[HTTP::header "LastMRH_Session"]"
HSL::send $hsl "<190> $timestamp $mysession \n"
log local0. "access policy acl allowed"
}
- Demeter_LuoJun 20, 2016NimbostratusHi Yann Desmarest Thanks for your suggestions, but my policy is network access and have many tcp and udp application and not just http,How to get session-id in out scenario? 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