Connecting Tech Pros Worldwide Forums | Help | Site Map

temp filenames

rodchar
Guest
 
Posts: n/a
#1: Apr 24 '06
hey all,

i have a webform that does some light server processing which creates a
temporary text file for downloading to the client. What's the best way to do
this?

If many people are going to access this page, what's the best way to keep
all the temp files related to the correct user?

thanks,
rodchar

Hans Kesting
Guest
 
Posts: n/a
#2: Apr 24 '06

re: temp filenames


> hey all,[color=blue]
>
> i have a webform that does some light server processing which creates a
> temporary text file for downloading to the client. What's the best way to do
> this?
>
> If many people are going to access this page, what's the best way to keep
> all the temp files related to the correct user?
>
> thanks,
> rodchar[/color]

If it's a single file (or a limited number) per session, then you could
keep the contents in Session. Provide some Upload.aspx to stream the
contents to the user.

If you really want to go for files, then you could use a Guid to
generate a filename. But: using files also means
a) write access to some directory on the site,
b) some way to deleted "old" files.


Hans Kesting


Closed Thread