artem_niko Posted February 23, 2020 Share Posted February 23, 2020 Good afternoon! How to get the session id of the current user from the cache directory? If I understand correctly, then what is the screenshot of the names of these sessions? But how to get the one that relates to the user who is working with the project now? I need this in order to temporarily download files from the database, and then delete them, because Several users work with the database and they can download one file at a time, and I need it to be downloaded for each session in its own directory. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 23, 2020 Share Posted February 23, 2020 Hello, 42 minutes ago, Артем said: How to get the session id of the current user UniSession.SessionId; 43 minutes ago, Артем said: But how to get the one that relates to the user who is working with the project now? I need this in order to temporarily download files from the database, and then delete them, because Several users work with the database and they can download one file at a time, and I need it to be downloaded for each session in its own directory. ... UniServerModule.NewCacheFolder; ? 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted February 23, 2020 Author Share Posted February 23, 2020 11 minutes ago, Sherzod said: UniSession.SessionId; It's working! Now I get name of folder for session of connected user. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.