Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session and temp files
#2
In ServerController, there is an event (in newer IW 15.x at least) that is made for that:


Code:
procedure TIWServerController.IWServerControllerBaseValidateCacheFileAccess(const aUrlPath: string; var vFileAccess: TIWCacheFileAccess);
begin
  
end;

Set variable vFileAccess to one of these values:

TIWCacheFileAccess = (faGrant, faDeny, faRequireSession);

aURLPath contains the requested URL (including the file name).

You can grant, deny or require the user session to be established. In faRequireSession case, the file will only be served if the user has already a valid session.
Reply


Messages In This Thread
Session and temp files - by joel - 06-15-2020, 12:18 AM
RE: Session and temp files - by Alexandre Machado - 06-20-2020, 03:00 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)