[eluser]Yash[/eluser]
Just use model.
Create a function in a model. Check session or do whatever you want. like redirecting to login form if not logged and so on...
Now access this function in controller functions.
I like this way..You can decide your own.