Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Read HttpOnly Cookie from response header in Ti.Network.HtppClient request's response

$
0
0

Application type: mobile Titanium SDK: 3.5.1GA Platform & version: iOS 7 and above Device: iOS simulator Host Operating System: OSX Titanium Studio: 3.4.1.201410281727

Hi guys,

I have to execute a simple login wherein after logging in, a sessionid is returned in cookie which I have to extract and use throughout the app.

However the cookie is HttpOnly and is not at all visible in the responseText because Ti.Network.HttpClient executes XmlHttpRequest and HttpOnly cookies are not visible when accessing from javascript as a specification for security reasons.

I cannot ask the server people to make changes to the code(not in my hand).

Can anyone please help me?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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