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 u...
Andy_Herrman_22
Nimbostratus
Oct 03, 2007If the session ID is in the URL then it should be pretty easy to extract it using iRules.
As for using odd vs even, you shouldn't have to worry about that. Let the load balancer just pick a server using its own load balancing algorithms, and then use the session ID to set the persistence.
Try setting up a persistence profile using universal persistence and then have an iRule that pulls out the session ID. You'd probably want to have an iRule similar to the ASP session persistence (Click here) but grabbing the session ID from the URL query string. Unfortunately I don't know how you'd get the session ID from the response, and you'd need to do that to make sure you associate the load balancing decision made initially with the session ID.
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