Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: IdCookieManager not saving cookie
| Subject: | Re: IdCookieManager not saving cookie |
| Posted by: | "mo" (dont.spam@me.com) |
| Date: | 18 Dec 2007 13:12:18 |
Remy,
Thank you for the response.
I'm using 9.00.10
The event fires on every requests as it should.
The cookies are stored in memory but not on disk as I
(apparently incorrectly) thought they would be.
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?
That approach seems to somewhat defeat the purpose of cookies.
Mo
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"mo" <dont.spam@me.com> wrote in message
>news:4768295e$1@newsgroups.borland.com...
>
>> I have added a TIdCookieManager and assigned it to my TIdHTTP
>> component.
>
>Which version of Indy are you using?
>
>TIdHTTP uses its own built-in cookie manager when you don't assign your own.
>
>> I'm using the Get method with the proper query items but i
>> never get past the login. If i paste the same url in my browser
>> it works just fine.
>
>Then the cookie manager probably can't handle the cookie(s) that are being
>sent to it.
>
>> I noticed that no cookies were created when using the cookiemanager
>
>The cookie manager stores every valid cookie it is given. Depending on the
>contents of a cookie, it may or may not send them back to the server
>correctly on subsequent requests, but valid cookies should always be getting
>stored in the manager, and you will get an OnNewCookie event for each one.
>If you are not getting that event, then the site is either not sending any
>cookies at all, or is sending invalid cookies.
>
>
>Gambit