Hi,
2010/7/17 Artur <[email protected]>
> 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();
>
>
>
No, I have set path to cookie file : Progdir:Resources/cookie
SnoopDos show access on start so I assume it is loaded as it should.
cookies.c from Chris port compiles here. There is no OS4 specific code.
See misc.c in framebuffer folder:
bool cookies_update(const char *domain, const struct cookie_data *data)
{
return true;
}
It does nothing so I replaced it with one from cookies.c .
Regards