NetTalk Central

Author Topic: Session Folder?  (Read 3097 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Session Folder?
« on: June 04, 2014, 01:25:53 AM »
Hi,

I like the idea of limiting the logged in user to certain folders and have looked at the LoggedIn folder.
Is there a similiar folder or way to serve only files from a folder for a specific session?

I am serving files from a DB (stored in blobs)
There are a few DB's, each company has their own DB (connect string being setup at log in)
The LoggedIn folder would contain content across companies.

I am looking at saving the blob in a folder and then serving it, and cleaning up afterwards.

Also thought it could be a good idea to create these temp folders in an area that is restricted to the company or user for that matter, similar to the LoggedIn folder concept.

thanks

Johan


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Session Folder?
« Reply #1 on: June 04, 2014, 06:26:34 AM »
so to be clear we're just talking about "files from disk" at the moment?

your sharing of multiple databases - that's a solved problem right?

regardless of the answers about - I'm curious why you would write a blob to disk, then serve it from there - why not just serve it directly out of the blob table? Like, as I recall, the "file download" example does.

cheers
Bruce

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Session Folder?
« Reply #2 on: June 04, 2014, 06:45:41 AM »

Hi Bruce

Seperate DB's solved and working really nicely thanks!

I am also manipulating the file on disk and saving parts into other blobs, and could be emailing them out as attachements etc..

I like the security and control of storing the files in the DB as a blob, so went this route instead of storing files on disk in a folder structure.

So am concerned that if I am doing temporary work in a folder and that the folder might be visible by someone outside of the company that is currently logged in.
I did see a post somewhere about restricting static files and intercepting the request.

Then came across the LoggedIn Folder and thought you might have something similar for each session.
In my case it would be each company,
so would really nice to set an additional folder (at sign in time)
that the currently logged in user has access to.

Security is currently not such a big issue as I will be clearing out these folders as the sessions end


thanks


Johan