471,330 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Mod python set cookie for all subdomains

Hi..
I set cookie from www.domain.com but i'cant read this cookie from
subdomain.domain.com
How can i set cookie for all subdomains ?

My set cookie code is:
cookie = Cookie.Cookie('Login-Data', data)
cookie.expires = time.time() + 9920000
Cookie.add_cookie(req, cookie)
Dec 3 '07 #1
1 3168
On Dec 3, 11:44 am, Abandoned <best...@gmail.comwrote:
Hi..
I set cookie fromwww.domain.combut i'cant read this cookie from
subdomain.domain.com
How can i set cookie for all subdomains ?

My set cookie code is:
cookie = Cookie.Cookie('Login-Data', data)
cookie.expires = time.time() + 9920000
Cookie.add_cookie(req, cookie)
Having created the cookie do:

cookie.domain = 'domain.com'

Graham

Dec 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Daan | last post: by
3 posts views Thread by fdsl ysnh | last post: by
3 posts views Thread by craigkenisston | last post: by
2 posts views Thread by craigkenisston | last post: by
reply views Thread by Rafal Zawadzki | last post: by
6 posts views Thread by test | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.