I have an app that generates crystal reports and exports them to different file formats. I am using the SessionID in the name of the file created to maintain unique file names between different users. I want to be able to delete these files when the user's session ends or they close their browser. I tried putting the code in the Session_End event and the Application_End events of Global.asax, but neither of those seem to be firing. For testing, I put a Session.Abandon in a click event for a button and that doesn't seem to work either. I have the same SessionID before and after clicking the button. Does anyone have any ideas about why this isn't working? Or is there another event I can use that will always occur? I need to be able to delete those files when the users are done with them.
Thanks
Thanks