Forum Discussion
mr_skater99_640
Nimbostratus
Mar 23, 2009Session Persistence
Hi all,
We are a group of developers in a larger organisation and recently we have been involved in a project that has required us to work a lot closer with our network engineers to con...
bilsch_10068
Nimbostratus
Mar 23, 2009This is a pretty simple task. You will want to create an http persistence profile such as this:
profile persist cookiePersist {
defaults from cookie
mode cookie
cookie mode insert
cookie name "fooCookie"
cookie expiration 00:00:00
}
Then you will need to assign an http profile to your virtual ( likely you already have this ) and set the persistence profile on the virtual to your cookiePersist profile like this:
virtual someAppVirt {
(...)
rules
... blah, rules
profiles
blah, some profiles plus your http profile
persist cookiePersist
}
The down side to this approach is that the cookie will be held by the browser until the session is closed - and by session I mean browser. Not the logging off - you will have to find a way to expire that cookie if you want to prevent them from coming back to the same app server.
You can also do http session persistence off of the jsessionuid cookie, refer to this from the code share: http://devcentral.f5.com/wiki/default.aspx/iRules/Weblogic_JSessionID_Persistence.html
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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