How to hide a sidebar on a login page using server events

Hi,
I have a website made with ASP.NET Maker that has a login page that includes a sidebar, which should be hidden when the user is not logged in. What is the best way to implement this functionality using server events?

There is no need to use server event for such case. All you need to do is by selecting No header/footer for Login.php, and make sure you have already selected both Login.php for View and Class remark, before re-generating those files.

Please note, that is for PHPMaker, you may adjust it to the asp net file for ASP.Net Maker.