Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Session end does not fire

Session end does not fire

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    soneliso
    wrote on last edited by
    #1

    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

    N M 2 Replies Last reply
    0
    • S soneliso

      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

      N Offline
      N Offline
      N a r e s h P a t e l
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • N N a r e s h P a t e l

        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

        S Offline
        S Offline
        soneliso
        wrote on last edited by
        #3

        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

        N 1 Reply Last reply
        0
        • S soneliso

          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

          N Offline
          N Offline
          N a r e s h P a t e l
          wrote on last edited by
          #4

          For deleting use System.IO.File.Delete("fullfilenamewithpath");

          Naresh Patel

          1 Reply Last reply
          0
          • S soneliso

            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

            M Offline
            M Offline
            Michael Sync
            wrote on last edited by
            #5

            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. :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups