Autor Beitrag
Bob Murphy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Mo 09.03.09 21:13 
Moin,
ich hab mal wieder eine Frage....
Und zwar benutze ich die IdHTTP Komponente (auf die Form gezogen, nicht selbst erstellt).
Jetzt logge ich mich via IdHTTP1.Get bzw. IdHTTP1.Post auf einer Seite ein.

Nach erfolgreichen Login möchte ich sozusagen die "Cookies" aus IdHTTP löschen (benutze kein CookieManager).
Normal mache ich das mit IdHTTP1.free, dies geht aber an dieser Stelle nicht, da ich die Komponente nicht selbst erstelle und später weiterverwenden möchte.
Wenn ich sie also mit IdHTTP1.free freigebe, kann sie später nicht wieder verwenden, da ja freigegeben^^

Also hat jemand eine Idee? Vom Prinzip hatte ich mir das so gedacht IdHTTP1.Clear ...

Hoffe jemand versteht mein Problem xD

LG Bob


EDIT// OK^^ Frage selbst beantwortet.... für die, die das selbe Problem haben, einfach IDCookieManager benutzen und nach dem Login sämtliche Cookies aus der IdCookieManager Komponente löschen.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 11.03.09 10:24 
Wenn du keinen CookieManager verwendest werden, soweit ich weiß, auch keine Cookies gespeichert.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Bob Murphy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Mi 11.03.09 12:56 
user profile iconmatze hat folgendes geschrieben Zum zitierten Posting springen:
Wenn du keinen CookieManager verwendest werden, soweit ich weiß, auch keine Cookies gespeichert.

Naja nicht direkt Cookies, deshalb hab ich ja auch Cookies in "" geschrieben.
Aber solange man IdHTTP nicht freigibt oder das Programm neustartet, ist und bleibt man auf der Seite eingeloggt.
Aber ist ja auch egal, mein Problem ist ja nun gelöst.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mi 11.03.09 13:19 
Freigeben und wieder erstellen?

ausblenden Delphi-Quelltext
1:
2:
Idhttp1.free;
idhttp1 := TidHttp.Create();


Sollte auch gehen wenn man die Komponente über den Formulardesigner eingebaut hat.
Bob Murphy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Mi 11.03.09 15:35 
Wie gesagt.... alle Fragen bereits geklärt xD