Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ios 11.4 cookies
#1
Is there a reason why this code to set cookies does not work in Safari on ios 11.4?

The code has been in production for some time running Intraweb ultimate 14.2.7 with SSL but recent reports suggest it no longer works for iPhone users. Does anyone here have insight or experience with this?

function GetCookieValue(sName: String): String;
begin
  Result := WebApplication.Request.CookieFields.Values[sName];
end;

procedure SetCookie(CookieName, CookieValue: String; ExpireIn: Real);
var

  ExpireOn: Real;
begin
  if ExpireIn <> 0 then
    ExpireOn := GetUTCDateTime + ExpireIn
  else
    ExpireOn := -1; // session cookie
  WebApplication.Response.Cookies.Add(THTTPCookie.Create(CookieName, CookieValue, '/', ExpireOn));
end;
Reply


Messages In This Thread
ios 11.4 cookies - by monstercode@gmail.com - 06-11-2018, 07:19 AM
RE: ios 11.4 cookies - by Alexandre Machado - 06-12-2018, 01:48 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)