Re: subdomains cookie problem

2009-06-29 Thread Stephen Cheng
Hi Raja This looks great. Thanks for helping out. Stepehn On Jun 29, 9:17 pm, Raja wrote: > Setup thecookie.domain attribute value to '.mydomain.com' (The first > dot is important) and all hosts in that domain will get thecookie. > > -- Raja > > On Jun 29, 4:01 pm, Stephen Cheng wrote: > > >

Re: subdomains cookie problem

2009-06-29 Thread Raja
Setup the cookie.domain attribute value to '.mydomain.com' (The first dot is important) and all hosts in that domain will get the cookie. -- Raja On Jun 29, 4:01 pm, Stephen Cheng wrote: > Yes, I check the cookie value in view or in middleware class. > > Just give example, eg, I want the brows

Re: subdomains cookie problem

2009-06-29 Thread Stephen Cheng
Yes, I check the cookie value in view or in middleware class. Just give example, eg, I want the browser to remember online user's city, so next time when they type www.mydomain.com, it will be diverted to cityx.mydomain.com. Now the problem is that: 1. When I setup a cookie varible cityname=ci

Re: subdomains cookie problem

2009-06-29 Thread Raja
Just checking, Are you submitting back to the server before checking for the cookie value ? Cookies are sent only when the request reaches the server. -- Raja On Jun 29, 9:21 am, Stephen Cheng wrote: > Hi > > I am facing a problem in DEV server that I really have no idea how to > resolve, whi

subdomains cookie problem

2009-06-28 Thread Stephen Cheng
Hi I am facing a problem in DEV server that I really have no idea how to resolve, which is related to cookie variable for subdomains. I use wildcard subdomains, eg. sub1.abc.com, sub2.abc.com, sub3.abc.com and all sub domains point to one running instance of django app. The problem is that I ho