Actually Im doing a login call to my server, by setting the session cookie
as shown below,
if (xmlhttp!=null){
try{
xmlhttp.open('POST',LOGINURL, false);
xmlhttp.setRequestHeader("Accept", "application/xml");
xmlhttp.setRequestHeader("Connection", "close");
xmlhttp.setRequestHeader("User-Agent","GoogleGadget");
xmlhttp.setRequestHeader("Cookie", "_session_id =
25044cb7df5ew191d8922b43ac08b2");
xmlhttp.onreadystatechange = onreadystatechange_login;
xmlhttp.send(null);
}
catch(e){
//view.alert("caught exception"+e);
}
}else{
view.alert("Your browser does not support XMLHTTP.")
}
but the cookie is not getting to the server.
any idea ?
thanks,
On Thu, Sep 25, 2008 at 5:54 PM, Teo <[EMAIL PROTECTED]> wrote:
> I'm not sure what you mean by _session_id and i don't see where it shows up
> in your code.
> Thanks,
> Teo
>
>
> On Thu, Sep 25, 2008 at 3:14 PM, mohan prasad <[EMAIL PROTECTED]
> > wrote:
>
>> Hi All,
>>
>> Its been long time I'm waiting for this issue to be solved, any one
>> can please help me ?
>>
>> Thanks,
>> Mohan.
>>
>>
>> On Wed, Sep 17, 2008 at 4:40 PM, mohan prasad <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi Teo / Benjamin
>>> I'm for you guys to answer ?
>>>
>>>
>>> On Wed, Sep 17, 2008 at 11:29 AM, mohan prasad <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>>> Hi,
>>>> When I'm trying to do a login call from GDG, getting the
>>>> _session_id as 'undefined', dont know the reason why?
>>>>
>>>> if (xmlhttp!=null){
>>>> try{
>>>> xmlhttp.open('POST',LOGINURL, false);
>>>> xmlhttp.setRequestHeader("Accept", "application/xml");
>>>> xmlhttp.setRequestHeader("Connection", "close");
>>>> xmlhttp.setRequestHeader("User-Agent","GoogleGadget");
>>>> xmlhttp.onreadystatechange = onreadystatechange_login;
>>>> xmlhttp.send(null);
>>>> }
>>>> catch(e){
>>>> //view.alert("caught exception"+e);
>>>> }
>>>> }else{
>>>> view.alert("Your browser does not support XMLHTTP.")
>>>> }
>>>>
>>>> My server team explanation is, login call itself sending sessionid as
>>>> undefined, but I'm not setting any cookies, please where I'm doing wrong?
>>>> and how to clear the cache from GDG?
>>>>
>>>> thanks.
>>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Teo (a.k.a. Teodor Filimon, Teominator)
> Site - www.teodorfilimon.com | Blog - www.teodorfilimon.blogspot.com
> GMT +2 (or PDT +10)
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---