I need to run a cron job for my application written in codeigniter.
My main issue is that my codeigniter application uses a hook that checks if there is a valid session, and is $_SESSION['user_id'] is set.
Running my application via terminal it will not work because of the hook.
Does anyone have a solution for this?