Jump to content

Get session folder from cache


artem_niko

Recommended Posts

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?

image.png.16aeb55153e1f1fab3b04d84e9766730.png

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.

Link to comment
Share on other sites

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; ?

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...