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