Forum Discussion
Toby_Penn_11283
Nimbostratus
Jun 23, 2006Session Timeout using jsession iRule
I'm using the following iRule to load balance and track my sessions (funky app, don't ask):
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTT...
JRahm
Admin
Jun 23, 2006What specifically is timing out? The app? TCP? The persistence setting? Idletimeout on the tcp profile will fix tcp timeouts. adding a value in seconds after the persist command will lengthen the persist timeout:
persist add uie [HTTP::cookie "JSESSIONID"] 1800
Are you having success with persisting on the whole cookie? I was getting irregularities with the server garbage after the jsessionid string, so I am only using the id:
[lindex [split [HTTP::cookie "JSESSIONID"] "!" ] 0]
I thought string trimright would have been easier, but it wasn't working as I had hoped.
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