Forum Discussion

danielc's avatar
danielc
Icon for Cirrus rankCirrus
Jul 07, 2022
Solved

A simple way to unset all variable during Client_CLOSED ?

Hello, I have a CLOSED_CONNECTION irule at the end of the VS to unset all variables:   when CLIENT_CLOSED {   TCP::close      if { [info exists demo1] } {     unset demo1   }   if { [info ...
  • Kevin_Davies's avatar
    Jul 07, 2022

    Variables are scoped to the connection. After its closed they no longer exist. The only time this is not the case when you create global variables via rule_init. So there is no need to delete these.