Bob_10976
Sep 23, 2010Nimbostratus
Illegal argument. Can't execute in the current context
Hello all,
We are wanting to apply the "Secure" attribute to just the ASP.Net session identifer via an iRule. We came up with the code below and it "appears" to work but I have the following error in the F5 GUI logs.
TCL error: Prod_SessionCookie_Secure - Illegal argument. Can't execute in the current context. (line 1) invoked from within "HTTP::cookie exists "ASP.NET_SessionId""
when HTTP_RESPONSE {
if { [HTTP::cookie exists "ASP.NET_SessionId"] } {
HTTP::cookie secure "ASP.NET_SessionId" enable
}
}
Any thoughts or suggestions?
Thanks,
Bob