Forum Discussion
Joe_Erchul_4263
Nimbostratus
Jan 22, 2010Counting unique web sessions via iRule?
All,
I'm looking for some guidance on how to count unique web sessions hitting a specific GET request on a VIP during a specific period of time. I'm trying to script something that our NOC can execute which would reset a counter to zero, begin counting sessions at either a pre-set time or through some interaction, then stop counting when the presentation is complete (NOC interaction). I looked into using the "Statistics" tab to gather this information, but I don't believe that this will give me a correct total even if I clear the counters first.
Any input is appreciated.
Thanks.
Joe
- hoolio
Cirrostratus
Hi Joe, - Joe_Erchul_4263
Nimbostratus
Aaron, - hoolio
Cirrostratus
You could insert a session cookie in responses if it didn't exist already in the request, and use that to count the requests following Joe's example in the article. In version before 10.1.x, it would be difficult to track all client sessions over a period of time as you can't count practically session table entries and can't efficiently time out entries from an array you manually create. The options for session counting using the table command (Click here) and the session table.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects