Saturday, 15 August 2015

jquery - Phonegap Android REST API Cookies - ASP.NET_SessionId not coming in response headers -



jquery - Phonegap Android REST API Cookies - ASP.NET_SessionId not coming in response headers -

i m experiencing problem in android phonegap application while logging/autheticating using post rest request.

my code post rest request :-

$.ajax({ url : "https://myurl.com/test/tv1.asmx/authenticateuser", type : "post", datatype : "json", contenttype : "application/json; charset=utf-8", info : json.stringify(textjson), success : function(result, textstatus, jqxhr) { console.log(jqxhr.getallresponseheaders()); }, error : function(result) { alert(result); } });

now when seek above code on browser or on ios phonegap application m getting 2 cookies asp.net_sessionid , .secuauth. on android in response headers m getting .secuauth cookie , not asp.net_sessionid cookie.

any thought why might be. in advance

it's because sessionid cookie flagged httponly, not available client-side javascript.

android jquery cordova

No comments:

Post a Comment