Hi!
The browser takes care of cookie expiration on the client side when the session ends. At the same time the F5 device would drop the entry from the persistence table.
What you could do is to redirect all users with an iRule that does not have the persistence cookie present? Something like this:
- Create a new persistence profile of type cookie and assign a cookie name, ie "persistenceCookie".
- Add an iRule that looks something like this:
.
when HTTP_REQUEST {
If the persistence cookie does not exist and the user is not at the login page, redirect the user to the login page
if { ![HTTP::cookie exists persistenceCookie] && !([HTTP::uri] starts_with "/login/")}{
HTTP::respond 302 Location "/login/"
}
}
You'd need to modify it some of course, but it might do the trick.
/Patrik