no session in cron
more compatible code