Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (titanium.network.httpclient)
Viewing all articles
Browse latest Browse all 13

Cookies problem

$
0
0

I have a problem when I try to get the cookies from the response header in the Titanium.Network.HTTPClient.

I use the following code:

var xhr = Titanium.Network.createHTTPClient();

var cookies = xhr.getResponseHeader("Set-Cookie");

and what I get is:

ASP.NET_SessionId=ir66445hj76y9fu9bx; path=/; HttpOnly

The ASP.Net_Session is only a part of the "Cookie" header, and the rest is missing.

I haven't set the HttpOnly flag to the cookies.

What is wrong?

Thanks in advance,

m.


Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>