G
Guest
Hello,
I'm writing trace log of various actions happening in my ASP.NET web
application by opening a text file when the user logs in to the system and
closing the file while the user logs out. This is especially to nail a
hangout issue.
The problem I'm facing is, when the application hangs and the user closes
the browser using close(X) button I'm not able to close the text
file(handle). This keeps the file handle open and the contents of the file
will be blank if viewed from Windows explorer.
Is there any way to resolve this by executing the statements to close the
file even if the user exits the application by closing the browser and not by
normal logout.
Your valuable ideas/solutions are welcome!
Thanks,
Mammen
I'm writing trace log of various actions happening in my ASP.NET web
application by opening a text file when the user logs in to the system and
closing the file while the user logs out. This is especially to nail a
hangout issue.
The problem I'm facing is, when the application hangs and the user closes
the browser using close(X) button I'm not able to close the text
file(handle). This keeps the file handle open and the contents of the file
will be blank if viewed from Windows explorer.
Is there any way to resolve this by executing the statements to close the
file even if the user exits the application by closing the browser and not by
normal logout.
Your valuable ideas/solutions are welcome!
Thanks,
Mammen