I need frontend to be visible only for logged in admins.
How to implement it in Oxid?
I have some PHP knowledge, but do not know how It can be done with Oxid.
I have tried to check session in front end and get logged admin, but it seems like I have different sessions in back end and front end.
Thank you for answer, I am sure this code should work, but It does not work in my situation.
I make var_dump() for $oxcmp_user and result is ‘null’. It is empty, I do not know why.
And I am logged in.