Thema: Delphi UniGui Cookies

Einzelnen Beitrag anzeigen

psycodad

Registriert seit: 8. Feb 2005
Ort: Embrach (CH)
40 Beiträge
 
Delphi 10.3 Rio
 
#2

AW: UniGui Cookies

  Alt 5. Okt 2015, 12:26
Setze ein Cookie:
UniApplication.Cookies.SetCookie('MyPwdCookie', 'DasPasswort' , Now() + 365, false, false,'/' );

Du musst immer eine Gültigkeitsdauer für ein Cookie setzen, sonst verfällt es mit dem Schliessen des Browsers.


Lösche ein Cookie:
UniApplication.Cookies.SetCookie('MyPwdCookie', '', Now() -1,false,false,'/' );
  Mit Zitat antworten Zitat