It can be done many ways.
The easiest way depends on your implementation. If you have only one editor per page, or only one folder per page anyway, then you could use a session variable. Otherwise you would have to pass it in with a url parameter and probably transfer it into the session from the /webassist/kfm/configuration.php page.
the /webassist/kfm/configuration.php page there is a variable named: $kfm_userfiles_address
That can be set to the corresponding folder using the session variable once set.