D
DC Gringo
I have an app that I can't seem to clear out server resources with a button
onclick event:
The session variables seem to be disappearing properly, but the
aspnet_wp.exe process stays where it had been upon running a heavy data
query. At a normal standstill it's at about 30-40MB and even after the code
below runs, it's up at 110MB.
What am I doing wrong?
Public Sub btnStartOver_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnStartOver.Click
Session.Abandon()
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(Now().AddSeconds(-1))
Response.Cache.SetNoStore()
Response.AddHeader("Pragma", "no-cache")
End Sub
onclick event:
The session variables seem to be disappearing properly, but the
aspnet_wp.exe process stays where it had been upon running a heavy data
query. At a normal standstill it's at about 30-40MB and even after the code
below runs, it's up at 110MB.
What am I doing wrong?
Public Sub btnStartOver_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnStartOver.Click
Session.Abandon()
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(Now().AddSeconds(-1))
Response.Cache.SetNoStore()
Response.AddHeader("Pragma", "no-cache")
End Sub