I need variable which can be set at RULE_INIT and can be modified outside of the RULE_INIT. It must be propagated to each TMM instance.
Which type of variable i can use?
I need variable as flag which must be the same for all connections and can be fodified.
I think you will need to use the session table to store global variables. However, when using a session table there's no need to use RULE_INIT because you can set it any time you want.
If you need to share non-static global data across CMP-enabled virtual servers, you can use the session table to store and reference the data. Session table data is shared among all TMM instances. Using the session table requires more operational overhead, but the benefit of preserving CMP processing for the virtual server typically outweighs this impact.