Forum Discussion

danielc's avatar
danielc
Icon for Cirrus rankCirrus
3 years ago
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
    3 years ago

    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.