Forum Discussion
Erik
Nimbostratus
Feb 11, 2014irules and session cookies
Hi,
I wish to be able to delete the cookie that is created when a session is enabled through APM using Cookie persistent. The reason is that i have a connection to a Citrix Webinterface and the inact...
IheartF5_45022
Nacreous
Feb 11, 2014To answer your question try this (where mycookie is set to your cookie name, and Path is set as appropriate);-
when HTTP_REQUEST {
set fInactive 0
if {[string tolower [HTTP::path]] eq "/vdesk/hangup.php3} {
set fInactive 1
}
}
when HTTP_RESPONSE {
HTTP::header insert Set-Cookie "mycookie=xx; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; HttpOnly"
}
However why don't you try setting the cookie expiry to 20mins? The Expires attribute will be updated each time you access the site - it will act as a parallel inactivity timer.
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