FileTranfer and Cookies

Hi, i made an app to take photos and upload them using FILE_URI and FileTranfer. This part works perfect.
My webservice use session and cookie, i cant acces to “set-cookie” but with “withCredentials:true” on angular http it works fine automatically

My real problem is when i want upload my photo and get authenticated form my server. with file transfer i cant manage my cookies with withCrdentials, i think i should set my header like headers = {“cookie”:“MyPhpId=mysecretcodegotfromserver;”} but, like i said, i cant set this cookies because i cant get them from my http service…

How manage cookies on ionic?