Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: IdCookieManager not saving cookie
| Subject: | Re: IdCookieManager not saving cookie |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 18 Dec 2007 14:21:22 |
"mo" <dont.spam@me.com> wrote in message
news:476837b2$1@newsgroups.borland.com...
> I'm using 9.00.10
That is a very old version. You should consider upgrading.
> The cookies are stored in memory but not on disk
They are not suppose to be. TIdCookieManager has no export/import
capabilities. You have to manage persistent storage of the cookie data
yourself.
> So since there are no physical storage of the cookies do I guess
> I then will have to manually recreate them every time is that correct?
You are responsible for saving cookies on application shutdown and restoring
them on application restart, yes.
> That approach seems to somewhat defeat the purpose of cookies.
The Cookie specifications do not say anything about physical storage, only
how to pass cookie values from one HTTP reply to a subsequent HTTP request.
Persisent storage is up to the user to manage, particularly since there are
no established standards for how cookie files should be formatted.
Gambit
none