Added hasSession global