PHP page external authentication

Hi,

I have a PHP Page which I want to use for authenticate on XWiki.

I think use headers authentication according to this scheme
XWiki

But unfortunately, the header is empty.

If i redirect this header to another php page, it’s OK.

I check everything but i can’t find where is the problem.

I must use my PHP webpage in my society.

Have you got any idea ?

Thanks a lot.

PS : Sorry for my bad english (I’m french).