Forum Discussion

a_pavlov_114144's avatar
Feb 21, 2014

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

  • 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

    ACCESS:session data get
    command.

  • 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 :
    
  • I'm going to make some tests on it, I thinked it was possible without anything more.

     

    I'll keep you in touch ;)

     

    • Thomas_Gobet_91's avatar
      Thomas_Gobet_91
      Icon for Cirrostratus rankCirrostratus
      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".
  • I'm going to make some tests on it, I thinked it was possible without anything more.

     

    I'll keep you in touch ;)

     

    • Thomas_Gobet's avatar
      Thomas_Gobet
      Icon for Nimbostratus rankNimbostratus
      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".