Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session and temp files
Is there a way to require a valid session_id before any item in the cache (/$/temp/........somefile) can be accessed?
In ServerController, there is an event (in newer IW 15.x at least) that is made for that:

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

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.

Forum Jump:

Users browsing this thread: 1 Guest(s)