Please Urgent Help. In my php ELGG functions do not work!!!

I have a new problem:

I have correctly registered the action. my php file is linked with my javascript one and the are able to pass simple data like strings, number or boolean value...

...BUT: all elgg function that i call on my php file like

$owner = elgg_get_logged_in_user_entity();

$guid = elgg_get_logged_in_user_guid();

$logged = elgg_is_logged_in();

give a bad result . I explain.

elgg_get_logged_in_user_entity(); ---> give NULL

$guid = elgg_get_logged_in_user_guid(); ---> give 0

$logged = elgg_is_logged_in(); ---> give false

i think is a session problem. but i need that all those function must work for give back data to my js.

it is a handler problem? How to declare it correctly ?? it's a session problem???

thanks a lot for future answers.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking