Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session and temp files
#1
Is there a way to require a valid session_id before any item in the cache (/$/temp/........somefile) can be accessed?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)