I forget to say:
User session was created successfully, but user still not logged in.
Also. If I try log in with external login form, it's works great(the session has been created and user has been logged in). And I think that is means, the problem not in my authentication extension.
What curl options should I set to login?
Or maybe you can give me some useful links?