Close Browser

How to close browser then user click Logout?

Do you mean the browser window? window.close(); (javascript)

Yes. have any Yii code then i can use in my logout controller, if user click for logout.

You can’t close a window that isn’t spawned by the browser with Javascript.

Well you can but you get a dialog box asking if you really want to close the window, which kind of defeats the object.