Hi,

I have implemented cookies.c from AmigaOS4 frontend and
cookies file look like this:

# >Progdir:Resources/cookie
# NetSurf cookies file.
#
# Lines starting with a '#' are comments, blank lines are ignored.
#
# All lines prior to "Version: 101" are discarded.
#
# Version Domain Domain from Set-Cookie Path Path from Set-Cookie Secure
Expires Last used No destroy Name Value Value was quoted Scheme URL Comment
Version: 101
0 .google.pl 1 / 1 0 1342461467 1279397025 0 PREF
ID=17972ee9cadf64c0:U=7bdc2c067431d93e:TM=1279389408:LM=1279389467:S=hZUJPvO1kSf7b7RR
0 unused unused
0 .google.pl 1 / 1 0 1295200608 1279397025 0 NID
36=MdfhD5AaOhTQqo81b3UHolVKxvJIvBWbQ-DYXFb3xvgm2wj5cRUKVgwuRO2DvBkFD2-h-wB3_DDeeMR3CoMiLX5mms_Oj1sZOu4v90Yeb4bH2Llk5fzyQRre7a8KwP8u
0 unused unused
0 .google.com 1 / 1 0 1342461467 1279397024 0 PREF
ID=cbda23c368db6bd8:U=e28223eea95a0cef:TM=1279389408:LM=1279389467:S=HZXREUORixoE5CZz
0 unused unused
0 .google.com 1 / 1 0 1295200608 1279397024 0 NID
36=GwZTgij5m-JtrC6unLVgUGfIK9_EXpZ5cur-ctnYSR6A1VMSuMoEdGuA-ByHRmCiUx6GiJYj1Z9fcy0RcSoCeR2vynSRiFkg0oY9PElrARRQd3szQ7VCwASYn_Wt2cUA
0 unused unused

There is more information than in Bernd's cookie but how to know if it is
loaded  at start ?

        if (fb_font_init() == false)
                die("Unable to initialise the font system");

        fbtk = fbtk_init(nsfb);

+ urldb_load_cookies(option_cookie_file);
+      ami_cookies_initialise();


void gui_quit(void)
{
        LOG(("gui_quit"));
     CloseLibrary(DosBase);
        framebuffer_finalise();

+ urldb_save_cookies(option_cookie_file);
+ ami_cookies_free();

Reply via email to