Hi!
I met problem when I tried to create my own filters. I add my own
filter in the /tcl/ad-security.tcl file, using the same style the
other filters use.
ad_register_filter trace GET /world.* ad_add_cookie
proc_doc ad_add_cookie{conn args why} {
set db [ns_db gethandle]
if ![catch {ns_db dml "insert into user_tracking values
(22 ,'wuwuu..')"} errmsg ] {}
ns_db releasehandle $db
return filter_ok
}
There is no error msg in log when I start aolserver by ./bin/nsd -kt
nsd.tcl. And have: [02/Oct/2001:17:07:31][20271.1024][-main-] Notice:
Registering trace filter ad_add_cookie for GET /world.html with
priority 10000
But when I access that page, seems the filter function does not work,
for I cannot see any change in the db.
what's the possible problem? How can I check whether it works?
Thanks
--Xian