Forum Discussion

Gulfam_219642's avatar
Gulfam_219642
Icon for Nimbostratus rankNimbostratus
Dec 23, 2015

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

  • 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
    }
    
  • 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?