The standards prohibit a cookie being passed across disparate domains,
it is only allowed between sub domains and even then the cookies have
to be setup to allow it as indicated.

All I can suggest is to use Google to look for 'cross domain cookies'.
Or trying asking on the Python Web-SIG or Stack Overflow site as
already suggested. You are going to get people in those places with a
possibly broader amount of knowledge about such things. In fact,
similar questions appear to have been asked on Stack Overflow in the
past, so perhaps just search on that site and see the prior responses
and comments.

Graham

2009/7/1 Garito <[email protected]>:
>
> Then is there any kind of advice of how to set this kind of cookies?
>
> I know this is not a mod_wsgi issue but if someone has deal with it
> before perhaps could send me the how to
>
> I try to explain better my problem
>
> I have a service at ads.mydomain.com that runs with mod_wsgi
>
> I have a web that consume this service at www.myconsumerweb.com
>
> I want to set a cookie from ads.mydomain.com to track the user at
> www.myconsumerweb.com that IE accept with the default configuration
>
> Any idea?
>
> Thanks and sorry
>
> On Jul 1, 12:44 pm, Graham Dumpleton <[email protected]>
> wrote:
>> 2009/7/1 Garito <[email protected]>:
>>
>>
>>
>>
>>
>> > Hi Graham!
>>
>> > When I set this Set-Cookie header:
>> > sruid=83601369_2009-07-01_08_11_06_563705; expires=Fri, 01-Jul-2011
>> > 09:59:07 GMT
>>
>> > then I can read this HTTP_COOKIE one:
>> > HTTP_COOKIE:
>> > __utma=145205154.584996188.1243418609.1243418609.1243418609.1;
>> > __utmz=145205154.1243418609.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=
>> > (none); sruid=83601369_2009-07-01_08_11_06_563705
>>
>> > But with this Set-Cookie:
>> > sruid=83601369_2009-07-01_08_11_06_563705; expires=Fri, 01-Jul-2011
>> > 10:02:30 GMT; domain=ruralnature.com
>>
>> > then I can read this HTTP_COOKIE:
>> > HTTP_COOKIE:
>> > __utma=145205154.584996188.1243418609.1243418609.1243418609.1;
>> > __utmz=145205154.1243418609.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=
>> > (none)
>>
>> > As you can see the main diference is the domain part of the cookie
>>
>> > I'm trying to create a recommendation server then the mod_wsgi
>> > application has one domain and the real application has other
>>
>> > I need to put the domain information because if not the IE don't
>> > accept the cookie with the default configuration
>>
>> > I can't solve the problem changing the IE security level
>>
>> > Is there a way to read 3rd party cookies from mod_wsgi?
>>
>> All HTTP request headers sent by the client will be in the WSGI
>> environment. If the information isn't in there somewhere, the client
>> never sent it.
>>
>> As I said, this isn't really a mod_wsgi or WSGI question by a general
>> web application question, specifically about how to use cookies.
>>
>> At a guess, I would say you are setting domain=ruralnature.com wrong.
>> If you are trying to have the cookies sent by client across two
>> domains, then the must both be sub domains of ruralnature.com, eg
>> a.ruralnature.com and b.ruralnature.com, and you must use
>> domain=.ruralnature.com. Note the '.' after the '='.
>>
>> Hard to suggest anything else as you aren't saying which requests are
>> going to what URLs and therefore what the host names of each are and
>> whether they are sub domains of another domain.
>>
>> Graham
>>
>> > Thanks!
>>
>> > On Jul 1, 12:17 pm, Graham Dumpleton <[email protected]>
>> > wrote:
>> >> 2009/7/1 Garito <[email protected]>:
>>
>> >> > Hi!
>> >> > I'm trying to set a persistent cookie and with mozilla works ok but on 
>> >> > IE
>> >> > don't
>>
>> >> > The problem with IE seems to be a security problem: IE don't accept 3 
>> >> > party
>> >> > cookies
>>
>> >> > I can use domain section for the cookie but then I don't know how to 
>> >> > read it
>>
>> >> > With a normal cookie I can use the HTTP_Cookie header but if I set the
>> >> > domain in the cookien then this cookie don't appears on the http_cookie
>> >> > header
>>
>> >> > How can I deal with this problem?
>>
>> >> This doesn't appear to be a mod_wsgi or WSGI problem per se. You are
>> >> probably better off asking on a general web developers list, or if are
>> >> using Python, then maybe on:
>>
>> >>  http://groups.google.com/group/comp.lang.python/topics?lnk
>>
>> >> or:
>>
>> >>  http://groups.google.com/group/python-web-sig?lnk=srg
>>
>> >> You might even try:
>>
>> >>  http://stackoverflow.com/
>>
>> >> I'd suggest you really need to provide more information about the
>> >> exact headers being returned so people can more easily see what you
>> >> are talking about.
>>
>> >> Graham
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to