Ciao guys, I am sick at home and I decided to implement the cookie file feature, as many users requested.
I think the most reasonable solution is to follow Netscape's way of managing cookies, in a text file easily manageable. The format is a tab separated fields description, and here are the details I found on http://www.cookiecentral.com/faq/#3.5 : .netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100103 >From left-to-right, here is what each field represents: domain - The domain that created AND that can read the variable. flag - A TRUE/FALSE value indicating if all machines within a given domain can access the variable. This value is set automatically by the browser, depending on the value you set for domain. path - The path within the domain that the variable is valid for. secure - A TRUE/FALSE value indicating if a secure connection with the domain is needed to access the variable. expiration - The UNIX time that the variable will expire on. UNIX time is defined as the number of seconds since Jan 1, 1970 00:00:00 GMT. name - The name of the variable. value - The value of the variable. My idea is to build a class derived from HtCookieMemJar, called HtCookieInFileJar, which just loads the file into memory; thanks to inheritance, the object is therefore addressable as a memory jar too (my intentions are to either use it directly or through the copy constructor pass it to the one already used). Please let me know if you are ok with this solution. Also, if interested, it would be pretty straightforward to implement the opposite solution, an output cookie (next time). So ...are you ok with this configuration attribute? cookies_input_file default value: empty When empty no input operation will be performed. Ciao and thanks! -Gabriele -- Gabriele Bartolini - Web Programmer - ht://Dig & IWA Member - ht://Check maintainer Current Location: Melbourne, Victoria, Australia [EMAIL PROTECTED] | http://www.prato.linux.it/~gbartolini | ICQ#129221447 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ htdig-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/htdig-dev
