Below is my logout code . I want to call a function where I can perform some operation once the code for logout for user is executed for force.com site.
PageReference pageRef = new PageReference('/default/secur/logout.jsp');
pageRef.setRedirect(true);
return pageRef;
Please help. Thanks in Advance.