cookie header missing

Reictwepe

New Member
im calling a web service with ksoap,and i want to maintain the session within the web service, im trying to set the session cookie, but from the service response i dont get the session cookie with the session ID, im doing this:\[code\]URLConnection connection = new URL(url).openConnection();String cookies = connection.getHeaderFields().toString();\[/code\]and in the output there is no Cookie header, there are only these headers:\[code\]cache-contro=[private], content-type=[.....], server=[Microsoft-IIS/7.5], x-aspnet-version=[.....], x-powered-by=[ASP.NET], date=[......], content-length=[.....] }\[/code\]I tested the service from a web browser and the session works, but doesnt return session cookie from an android app. Do u know wht is the problem??Before my service method i have declared: \[code\][ScriptMethod][WebMethod(EnableSession = true)]\[/code\]Im using \[code\]ksoap 2.6.1\[/code\] library
 
Back
Top