Note - On MSDN you can read:
In general, use LayoutsPageBase as a base class for pages that should only be accessible to authenticated users with certain rights. For pages to which even
unauthenticated users should have access, use the parent class UnsecuredLayoutsPageBase.
I have tried to switch to this base class, but it didn't work for me. Anyone who did it?