Dear birari ,
Leave all the things .. make an ASP page page & include just these few lines
Home.asp represents the desired page which should be opened after clicking the logoff button . give action of page to the page on which u are writing these lines ..
<% session.Abandon %>
Kamal Kant Singh