So, if John loads a page:
editrecord.asp?recordid=4
and then Jeff loads that same page, you want Jeff to see "John's editing the
record."
You should be able to handle this in Session_OnEnd, but instead, what you
might consider doing is tracking the time that a user opens the record also.
So, if John opens the record, stick his name in your column, but also put
the date and time in there. So, when you load the page and execute your
query to get that record, if there's a name in the column, but the date and
time are 45 minutes old, let the new person edit. If it's only a couple
minutes old, return back that John's editing it.
I'd maybe try something like that in conjunction with session_onend as well
as ensuring that the values are deleted when the person submits the changes,
of course.
Ray at work