c# - Saving temporary image file in a session -


there user registration module requires users’ logo upload before register. i’m facing problem of store uploaded image, because @ time user uploading logo, actual user item not created.

as solution that, can think of saving uploaded image (until create actual user item) in session variable. idea in terms of performance , longtime use of system?

sounds bad idea. using session state adversely affect ability scale application , putting large binary blobs session put significant memory pressure on application. better solution store images temp area in file system , implement regular sweep function clear out uploaded images uploaded users didn't convert registered users (for example, images more day old). obviously, when user complete registration move image out of temporary storage.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -