Forum Discussion
Brent_Sachnoff_
Nimbostratus
Dec 06, 2007Assigning cookies only once
I'm trying to assign a client a cookie that will be psuedo random using:
when HTTP_RESPONSE {
expr srand([clock clicks])
set tracker [expr (rand() * 999) + 10]
HTTP::cooki...
Joe_Hsy_45207
Nimbostratus
Jun 01, 2009Just realized that the cookie insert code will not be executed for each http hit (only the first hit for that browser session), so performance shouldn't be too much of an issue. Never mind!
BTW, do you know the overhead with using [AES::key] to generate an unique id versus the rand method you outlined?
Thanks! //Joe
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