Forum Discussion
Bob_10976
Jan 26, 2011Nimbostratus
Possible Syntax issue with HTTP::Cookie iRule
Hello all..
I have a working iRule in place and I need add to it, but it seems I'm getting some type of Syntax error.
The current iRule looks like this and as I said appears to work fine: ...
Chris_Miller
Jan 26, 2011Altostratus
You have an extra "}" above your final if statement. Give this a shot.
when HTTP_RESPONSE {
if { [HTTP::cookie exists "ASP.net_SessionID"] } {
HTTP::cookie secure "ASP.net_SessionID" enable
}
if { [HTTP::cookie exists ".ADAuthCookie"] } {
HTTP::cookie secure ".ADAuthCookie" enable
}
if { [HTTP::cookie exists "RS_User"] } {
HTTP::cookie secure "RS_User" enable
}
}
That was originally there to close the HTTP_REQUEST event. Looks like an additional was was correctly created at the end of the new rule but the original wasn't removed.
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