Fixed bug in session handling during execution of Cron process