08-22-2007, 03:33 PM
Thanks...then it seems to point to a problem with expiry date handling.
Tho I'm still not yet sure why you have issues and my test systems don't, I certainly now have several things to try, and I'll also put in some debug messages into the script.
By leaving the old cookie until the point where a new one is written (because "del wild..." line was removed), forces a new expiry date into the cookie writing. Just a theory right now, and I'm certainly no expert but the varying differences in time when it works/doesn't/works again may have to have to do with how long before the OS takes to get around to removing expired cookies (background services priorty?).
Q1. Is the output of your folder polling function in chronological order? In other words, in your latest test results for each macro run, this happens in order:
1 C:\Documents and Settings\G\Cookies\g@~~local~~[1].txt
8 C:\Documents and Settings\G\Cookies\g@~~local~~[1].txt
Q2. Is the function called at a certain point in my mac code, or is launched separately and truly polling any changes in the folder continuously?
Q3. Can you share the code (be very useful here, and in other apps...)?
Thanks again.
Tho I'm still not yet sure why you have issues and my test systems don't, I certainly now have several things to try, and I'll also put in some debug messages into the script.
By leaving the old cookie until the point where a new one is written (because "del wild..." line was removed), forces a new expiry date into the cookie writing. Just a theory right now, and I'm certainly no expert but the varying differences in time when it works/doesn't/works again may have to have to do with how long before the OS takes to get around to removing expired cookies (background services priorty?).
Q1. Is the output of your folder polling function in chronological order? In other words, in your latest test results for each macro run, this happens in order:
- a new cookie file is created (say " ...[1].txt" ),
that cookie is modified ( ...[1].txt is populated with data from form/js),
and then, if exists already, earlier cookie ( ...[2].txt ) expires and is deleted.
1 C:\Documents and Settings\G\Cookies\g@~~local~~[1].txt
8 C:\Documents and Settings\G\Cookies\g@~~local~~[1].txt
Q2. Is the function called at a certain point in my mac code, or is launched separately and truly polling any changes in the folder continuously?
Q3. Can you share the code (be very useful here, and in other apps...)?
Thanks again.