0
Hope your thread resolved here.. http://www.c-sharpcorner.com/Forums/Thread/127863/how-to-delete-image-according-to-intial-string-of-the-im.aspx
0
Session.Abandon method destroys all the objects stored in a Session object and releases their resources. You need write separate logic to delete the physical files.
0
sir in this Session.Abandon(); is neccessary for delete images or file
0
System.IO.Path.GetTempFileName()
will give you the temp folder with files.
You needs to do
if (File.Exists(sFileNamePath)) { File.Delete(sFileNamePath); }
0
Thanks Sir , but i want to do this in global.asax . sir is the above code is correct anything missing from above code how to delete images from temp folder when user is logout
0