Sign out Code for on-page button

You could use the approach here: Logout users after a period of inactivity

You would need to write a code to hook into button click and then remove the cookie and then reload