I want to store files uploaded by user in session variable,so that i can use it from any page i want in my project.i am retreiving files from statement:
httpFileCollection uploads=HttpContext.Current.Request.Files;
how can i store and retrieve this in session variable??
Thanks in adavnce
The same way that you store and retrieve ANY other object into and from Session state:
The wisdom of storing this object in Session is quite debatable and I would not recommend it however.
As for the contention (refer your previous question) that the HttpFileCollection variable cannot be stored in Session state, I refute that as I have been able to do it in the past. Once you have retrieved the object into a variable, you can save it however you want.