Forum Discussion
Bob_10976
Nimbostratus
Sep 23, 2010Illegal 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
- hoolio
Cirrostratus
Hi Bob, - turo
Employee
Aaron, - hoolio
Cirrostratus
Hi Turo, - turo
Employee
Aaron,
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