Axel_2807
Oct 03, 2007Nimbostratus
Persit on value of PHPSESSID
Hello,
I'm a newbie in iRules so sorry if my question is too simple...
Here is my trouble :
- I have two web server with PHP.
- I want to have a session persitance by using PHPSESSID which is in my URL
- I can't use cookie, because of browser used by my clients (a small bult-in browser in a big application).
My first idea was to use the value of PHPSESSID :
- if it is odd go to server 1
- if it is even go to server 2
(maybe I can also use hash(PSHSESSID)[N] where N is the number of server in my pool) (btw [] means math "modulo")
But I don't know how to extract the value of PHPSESSID in my URL.
Do you think this method could be good?
If you have any piece of advice about my trouble, ti would help me...
Thanks a lot.
Axel