-
The logout button doesn’t appear in the lightbox unless you put it there.
-
Even if you add a Logout button to the lightbox once the user clicks Logout, the page will get refreshed and the lightbox will be closed.
P.S. If you’re not referring to a lighbox but to a webpage, all you need to do is to set the permissions to Members Only