We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

problem with some views without sessions y other with sessions

hello ... I am currently developing a login and i need to validate in some views that don't exists session variable. I was thinking to create two controllers, one to manage sessions, ACL .... and another to handle views that do not have sessiones... I don't know if exist other method for to do this. what recommend me ?

If you are using Volt:

{% if session.has('something') %}
{% endif %}

https://github.com/phalcon/forum/blob/master/app/views/partials/top-menu.volt#L41