01-05-2021, 08:22 PM
The third parameter (you are setting 0 for session cookie) is "ExpireOn". So, you can set that for the date/time you wish for the cookie to expire if you want to leave a cookie for another session later.
It is TDateTime format using UTC. You can get the current time (Now equivalent GMT) as:
(GMTST: Windows.TSystemTime)
windows.GetSystemTime(GMTST);
result:=Sysutils.SystemTimeToDateTime(GMTST);
Dan
It is TDateTime format using UTC. You can get the current time (Now equivalent GMT) as:
(GMTST: Windows.TSystemTime)
windows.GetSystemTime(GMTST);
result:=Sysutils.SystemTimeToDateTime(GMTST);
Dan