Forum Discussion
Axel_2807
Nimbostratus
Oct 03, 2007Persit 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
- Andy_Herrman_22
Nimbostratus
If the session ID is in the URL then it should be pretty easy to extract it using iRules. - Axel_2807
Nimbostratus
Thanks a lot both of you for your advices. I will try it on my test BigIP1500.
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