Hello

When a user is in a 'protected' page, I wanted to include a 'log-out' link on it. Is this the way to do it?

Code:
<form action=myPage.asp post > 
 <input type="submit" value="logout" name="action" > 
 </form> 

 <% 
 If request.servervariables("REQUEST_METHOD") = "POST" then 
 If request.form("action") = "logout" then 
 Session.Contents.RemoveAll() 
 Response.Redirect "index.asp" 'send user back to home page
 End if 
 End if 
%>
Thanks!