Session_End called at wrong time

  • Thread starter Thread starter akanihuu
  • Start date Start date
A

akanihuu

I am building a ASP.Net web application using C# and added code to the
Session_End function in the Global.asax.cs to delete user files when
the session times out in ten minutes. I have a page that displays the
accounts in a datagrid with two columns. One column contains the
account name and the second contain a delete link to delete the
account. The problem I am having is that whenever I click the delete
link to delete the account, it is triggering a call to the Session_End
event to delete the user files instead of the account. I don't know
why this is happening and have tried many work around to fix this
problem, but have been unsuccessful. I would really appreciate any
help on this, thanks.
 
The problem I am having is that whenever I click the delete
link to delete the account, it is triggering a call to the Session_End
event to delete the user files instead of the account. I don't know
why this is happening and have tried many work around to fix this

In-proc session management can terminate early for a number of
reasons other than it's time has elapsed. An in-process session
only lasts as long as the AppDomain it's executing under, for example.

See the following Microsoft knowledge base article for more info,

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q324772

Alternatives you can try include out-of-proc session management
configurations like using SQL Server or state server to maintain the
information related to the session.


Derek Harmon
 
Back
Top