Forum Discussion
RFLORY_78743
Nimbostratus
Apr 08, 2013Session Inactivity and browser reset
We have an application that we want to set a different timeout for a set of machines (kiosks). I have an iRule already for another app that can detect the inactivity, but what I am having trouble wi...
Kevin_Stewart
Employee
Apr 09, 2013Controlling browser behavior like the back button is considerably difficult, so while you may be able to redirect away from the screen, it may not prevent going back to previous content. Here is a VERY simple script that injects a JavaScript timer into every response page. The timer restarts on every page load, but DOES NOT account for activity within the browser (mouse movements, etc.) so you'll need to modify it for that. This is just an example of how to inject the JavaScript:
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if { [HTTP::header value Content-Type] contains "text" } {
STREAM::expression {@@@}
STREAM::enable
}
}
Apply a blank Stream profile to the virtual server for this to work.
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