Hi
I am using the !glo:FileName construct for file names in my dictionary to be able to separate user files based on login and populate the file name from a Control file in the ProcessLink procedure. This all works fine.
I added a file which required 'cleaning up' at session end and wrote the code in NotifyDeleteSession but the glo:FileName variable and the session variable 'username' were null at this point.
The documentation says "The Session Id is available at this point in the self.SessionID property. No other session values are available at this point in the code."
If this really is the case then it's not straightforward to delete the session data. The standard 'file name' is constructed using, say, the 'username' session variable viz:
GLO:ScenariosFileName = clip(Con:filePath) & p_web.GSV('username') & '\Scenarios.tps'
if CON:FilePath is 'D:\GreatApplication\' and the users are Fred, Mary and Jane then the data stores are:
D:\GreatApplication\Fred\Scenarios.tps
D:\GreatApplication\Mary\Scenarios.tps
D:\GreatApplication\Jane\Scenarios.tps
If the session variable 'username' is not available at the 'clean up' point then I would probably need to store the session id and 'username' in another file in order to be able to retrieve it so that I could delete data from the correct file.
Is my analysis correct and is this what has to be done if you are implementing multiple file stores (one per user)?
Thanks
Keith