Hi,all. Currently i am facing a problem.I have a form which can be opened by only 1 user at any given moment of time.When someone else tries to open the form (opened by someone else),he shoould get an error msg informing that the form is opened by "personName".Ihave set a flag in the database if opened==Y show error msg if opened==n allow to open the form. For this i am storing the username in session var . The prob i'm facing is that when the user(after opening form) closes the browser window,the database flag stays active ie ='Y'. Can i have a window closing event so that if he closes the browser,his session will be invalidated? Or can u suggest some other way? Any help is appreciated. Thanx, Vedhas.