Forum Discussion
Matt_Breedlove_
Nimbostratus
Hi, I dont think there is any other way to do this than a global TMM variable.
What do you mean by a session? You mean a TCP connection?
Assuming you mean TCP connection by "session", then in your irule you would init the RULE_INIT event. IN that rule you would init a global variable such as $TOTAL_CONN_CNT. Then you would create the CLIENT_ACCEPTED event and increment/decrement the TOTAL_CONN_CNT based on the creation and destruction of the TCP connections handled by the irule.
You can do it this way, or you can not do it at all
mvo_65102
Jun 23, 2014Nimbostratus
Hi Matt,
thanks for you fast reply.
I want to count HTTPS sessions. The problem with the counter within an irule is that it is not exact. Now i am testing this with a table where i count all entries. Looks more stable but still not perfect.