Session end does not fire
-
I have a page that creates gif images in asp.net. i stored the image name in my hashtable. now i want to delete the file when the user closes the page or when the session ends. The session_start fires ok. I have set my sessionState on web config file to but session end does not seem to fire. Please please help please help Don't argue with a fool because he/she will bring you down and beat you with exprience
-
I have a page that creates gif images in asp.net. i stored the image name in my hashtable. now i want to delete the file when the user closes the page or when the session ends. The session_start fires ok. I have set my sessionState on web config file to but session end does not seem to fire. Please please help please help Don't argue with a fool because he/she will bring you down and beat you with exprience
hi, Delete all session setting from web.config file or apply default setting at there. The default setting for SessionState is "InProc". Try this. Naresh Patel
-
hi, Delete all session setting from web.config file or apply default setting at there. The default setting for SessionState is "InProc". Try this. Naresh Patel
Thanks but i did that ecxatly, but its not working!!! i have got this on my web.config file: on my page i have this line session("fileName") = strFilename on Session_start i have Session("Started") = "True" on Session_End i have FileIO.FileSystem.DeleteFile(Session("fileName").ToString) but still it not firing... Motivation alone is not enough, if you have an idiot and you motivate him/her, you now have a motivated idiot
-
Thanks but i did that ecxatly, but its not working!!! i have got this on my web.config file: on my page i have this line session("fileName") = strFilename on Session_start i have Session("Started") = "True" on Session_End i have FileIO.FileSystem.DeleteFile(Session("fileName").ToString) but still it not firing... Motivation alone is not enough, if you have an idiot and you motivate him/her, you now have a motivated idiot
For deleting use System.IO.File.Delete("fullfilenamewithpath");
Naresh Patel
-
I have a page that creates gif images in asp.net. i stored the image name in my hashtable. now i want to delete the file when the user closes the page or when the session ends. The session_start fires ok. I have set my sessionState on web config file to but session end does not seem to fire. Please please help please help Don't argue with a fool because he/she will bring you down and beat you with exprience
You wanna see the session_end events firing, hum? Set the breakpoint in Session_End event. Restart the IIS. :)
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)