When using web.setcookie, you can specify a keyword argument domain --
signature looks like this:

def setcookie(name, value, expires="", domain=None, secure=False,
httponly=False):

I'm not sure what the browser behavior will be, however, if you set a
cookie's domain to something that's not a subdomain of the requested
domain. I can't override google's auth cookies for you by having you
go to my site, for example.


On Apr 1, 2:24 am, ambre <[email protected]> wrote:
> Hi,
>
> is it possible to set the cookie domain with respect to the path in
> webpy 0.34.
>
> For example:
> If the path is /shop/a cookie_domain should be .example.com
> If the path is /shop/b coodie_domain should be .production.com
>
> Regards
> Erwin

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

Reply via email to