Logout usually just deletes all authentication cookies on the user's browser and removes those tokens on the server. It's pretty easy to do.
You can probably do it yourself, but I'll do it for 100 BTC.
Thanks ive got it sorted now, maybe you can help me with one last thing, how can i display ฿ icon in html?