Forum Discussion
ACCESS_SESSION_CLOSED event
Hi everyone! Can someone explain me what session variables are available in the ACCESS_SESSION_CLOSED event? I can't find any documentation about it.
My task is to remove the client from a subtable by his ip address or session id when the session is closed, but it seems that there is no session information available in the ACCESS_SESSION_CLOSED event.
8 Replies
- Thomas_Gobet
Nimbostratus
Hi,
Even if you're under ACCESS_SESSION_CLOSED event you can access session variables.
For example here is an example of how to get the client IP :
ACCESS::session data get "session.user.clientip"Every variables are available but you have to use
command.ACCESS:session data get Thomas, I have the following irule attached to the VS:
when ACCESS_SESSION_CLOSED { log local0. "CLOSING SESSION" log local0. [ACCESS::session data get "session.user.clientip"] }But in the log I can't see the ip address:
Feb 21 02:34:23 swg info tmm1[9977]: Rule /Common/POLICY_IRULE : CLOSING SESSION Feb 21 02:34:23 swg info tmm1[9977]: Rule /Common/POLICY_IRULE :- Thomas_Gobet_91
Cirrostratus
I'm going to make some tests on it, I thinked it was possible without anything more.
I'll keep you in touch ;)
- HI, Thomas, have you tested it?
- Thomas_Gobet_91
Cirrostratus
I made some tests, and I didn't find how to get those variables in ACCESS_SESSION_CLOSED event... Sorry to have to tell you that "bad news".
- Thomas_Gobet
Nimbostratus
I'm going to make some tests on it, I thinked it was possible without anything more.
I'll keep you in touch ;)
- HI, Thomas, have you tested it?
- Thomas_Gobet
Nimbostratus
I made some tests, and I didn't find how to get those variables in ACCESS_SESSION_CLOSED event... Sorry to have to tell you that "bad news".
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