By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,550 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,550 IT Pros & Developers. It's quick & easy.

Mod python set cookie for all subdomains

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.