Forum Discussion
Hot to delete a particular cookie(JSESSIONID) when ACCESS_SESSION_CLOSED event is trigered
Hi, I need to remove two cookies JSSIONID and LtpaToken2 when ACCESS_SESSION_CLOSED event is triggered, need to know how to write iRule for same.
Thanks
2 Replies
- Brad_Parker
Cirrus
If you are trying to remove them from the clients' browser you can just immediately expire them like this.
when ACCESS_SESSION_CLOSED { HTTP::cookie expires "JSSIONID" 0 absolute HTTP::cookie expires "LtpaToken2" 0 absolute } - dexterstu
Nimbostratus
I am also trying to remove cookies when an APM session ends.
I have tried the suggested solution, but get the error: command is not valid in current event context.
I don't believe flow based commands can be used during the APM_SESSION_CLOSED event.
Is there another way to get this to work?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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