Forum Discussion
JFC_377076
Feb 13, 2019Altocumulus
Irule to modify timeouts ?
Hi!
in a webportal configuration, i would like to modify the inactivity timeout and the maxsession timeout based on the IP source of the client.
datagroup= my ip address for the test
W...
Faruk_AYDIN
Feb 13, 2019Nimbostratus
Use the iRule code inside ACCESS_SESSION_STARTED event not CLIENT_ACCEPTED:
when ACCESS_SESSION_STARTED {
set user_ip [ACCESS::session data get "session.user.clientip"]
if { not [class match $user_ip equal datagroup } {
ACCESS::session data set session.max_session_timeout 200
} else {
ACCESS::session data set session.max_session_timeout 300
}
}
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