Forum Discussion
joshygeorge_206
Nimbostratus
Jun 12, 2015iRule - will this work?
Sorry if this is a stupid question.
I'm a novice trying to validate a iRule and looking for expertise kindness / help.
Just trying to logout & re-direct if the its a second time visit to a uri patte...
joshygeorge_206
Nimbostratus
Jun 12, 2015Thank you ! Something like below?
when HTTP_REQUEST { if { [HTTP::uri] contains "xyz.com"} {
ACCESS::session data set session.temp.logpatterncount [+1]
if {ACCESS::session data get session.temp.logpatterncount eq [2] }
{
ACCESS::session remove
log local0. "hit for logout button"
HTTP::redirect "http://www.test.com"
} } }
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