So, the question is how can I configure Module.php in my module to check if the user is or is not in session?
If he is not I want to redirect him to the log in page.
I don’t want the user to has permission to go on other action(controller) if he is not in session(not logged in).
This should be done with event in ZF2 for more details: click here also this code may help you. http://pastebin.com/FFGVCpki