F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

trx's avatar
Feb 09, 2011

logging each cookie name failing in logs

Hello all,

The below code is throwing an error in the logs:

 

 

 

when HTTP_REQUEST {

 

set cookies [HTTP::cookie names]

 

foreach cookie $::cookies {

 

log local0. "Cookie: $::cookie"

 

}

 

 

}

 

 

 

Error in logs:

 

 

 

TCL error: qadpreviewdev.qad.com HTTP_RESPONSE - cant read ::cookies: no such variable while executing foreach cookie $::cookies { log local0. Cookie: $::cookie }

 

 

 

Any help if fully appreciated.

 

 

 

Thanks.

 

 

 

Regards,

 

TRX

 

11 Replies