I have a table of records that has a column processed
. In my web page i'm using sessions.. because every user that opens the page should see different data from the table.. so i initially have processed=0
and when i'm selecting my data i'm updating the column where processed=0
and then i'm updating the column to processed=2
so that way if another opens the page he gets other data... but the problem is that if the user closes the page without changing anything about the page i need to put my column back to 0 processed=0
but i can't handle an event on the close button of the page... and also not on the log out because they may close the page without logging out... so does anyone has any idea how can i manage this?
note that i'm using asp.net with vb.net