Quote:
Originally Posted by anuj866
ok the problem lies in the cookie management , it seems that the caching mech. is done and the same cookie is sent to the application instead of the second cookie.
FIRSTLY,
when using a browser(setting to get notifications for each and every COOKIE) the web-site is responding with TWO different cookies.
1) login=3 *i.e. login id*
2)loginCookies= <dynamically generated> *which maintains the session for login*
These two cookies are made one and sent from mds to device when the mds is made to act in cookieSupport (that is what i observed)
but,on device, the device receives two separate cookies (as in a general browser)
It would have been fine if the cookies received were like the browser but the device gets both cookies as same(duplicate) which restricts me from getting the logincookie
please refer below for the obtained headers
HEADER--------->Date
VALUE--------->Mon, 21 Jun 2010 12:22:59 GMT
HEADER--------->Server
VALUE--------->Apache/2.2.15 (CentOS) mod_ssl/2.2.15 0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
HEADER--------->SOAPServer
VALUE--------->SOAP::Lite/Perl/0.710.08
HEADER--------->Set-Cookie
VALUE--------->login=3; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT
*THIS IS THE DUPLICATE COOKIE VALUE*
HEADER--------->Set-Cookie
VALUE--------->login=3; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT
HEADER--------->Content-Length
VALUE--------->194
HEADER--------->Vary
VALUE--------->Accept-Encoding
HEADER--------->Connection
VALUE--------->close
HEADER--------->Content-Type
VALUE--------->text/xml
i even used
connection. setRequestProperty("Cache-Control", "no-store, no-cache, must-revalidate");
but it seems that there is no change in the response header.
any ideas as to where m i going wrong??
thanks in advance
|
while in the MDS-SIMULATOR i can very clearly see:
<2010-06-22 13:10:33.520 IST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevi
ce, DEVICEPIN = 2100000a, CONNECTIONID = 87478366, HTTPTRANSMISSION =
Set-Cookie:login=3; path=/;
expires=Fri, 01-Jan-2038 00:00:00 GMT>
<2010-06-22 13:10:33.520 IST>:[201]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevi
ce, DEVICEPIN = 2100000a, CONNECTIONID = 87478366, HTTPTRANSMISSION =
Set-Cookie:logincookie=mZdW
JIk5V0; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT>
i dont understand why the device Cant get the same response as the MDS-simulator.
does anyone know how to remove that duplication m receiving and get the real cookies as the MDS-simultor??
please help