使用cron的“GET”命令执行函数时,会话变量无法工作

I am trying to access session variables of a function setup using a cron job on openshift in PHP. I have setup the cron using GET command of PHP and it hits the url every minute. However I am unable to access session variables declared in the function and the script fails everytime. Can anyone help me fix this?