Re: Session problems

2006-12-07 Thread Jakub Labath
Solved! Of course It was my code that was causing it! Python, apache, django (old or new version) mod_python, fastcgi are all innocent. What was it? RESPONSE_OBJECT = None def my_view(request): ...blah.. global REPOSNE_OBJECT if not RESPONSE_OBJECT: RESPONSE_OBJECT = HttpResponse()

Re: Session problems

2006-12-04 Thread Jakub Labath
No I'm using prefork MPM. On 12/3/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > Jakub Labath wrote: > > Hi All, > > > > Sorry for being quiet for a while just got back from a vacation. > > > > > > > > Hi Jakub, > > > > > > Do you have any updates on this problem? Was it a mod_python bug?

Re: Session problems

2006-12-03 Thread Graham Dumpleton
Jakub Labath wrote: > Hi All, > > Sorry for being quiet for a while just got back from a vacation. > > > > > Hi Jakub, > > > > Do you have any updates on this problem? Was it a mod_python bug? > > > > Adrian > > > > No the problem persists and I noticed that my coworkers have not > resolved this

Re: Session problems

2006-12-02 Thread Jakub Labath
Hi All, Sorry for being quiet for a while just got back from a vacation. > > Hi Jakub, > > Do you have any updates on this problem? Was it a mod_python bug? > > Adrian > No the problem persists and I noticed that my coworkers have not resolved this in my absence. I'm still not sure what the pro

Re: Session problems

2006-11-28 Thread Graham Dumpleton
Brian Ray wrote: > Graham: > > This behavior has been seen with mod_python under certian instances. > For example how to the settings in httpd.conf effect this? For example, > "PythonAutoReload On" and apache's MaxRequestsPerChild 1. Maybe they > can aggravate a problem when something else is go

Re: Session problems

2006-11-28 Thread Brian Ray
Jakub: Why not temporarily switch to SCGI and see if the symptoms goes away? You need to concrete-ize this problem. BTW, is the cookie even being set on the browser. What version of mod_python? Did you compile yourself? Graham: This behavior has been seen with mod_python under certian instance

Re: Session problems

2006-11-27 Thread Graham Dumpleton
Adrian Holovaty wrote: > On 11/7/06, Jakub Labath <[EMAIL PROTECTED]> wrote: > > If you take a look at the attached log you will see the same child > > process having the same request._req object for two different IP > > addresses. Now this should not normally happen should it. The memory > > add

Re: Session problems

2006-11-27 Thread [EMAIL PROTECTED]
I can't speak for Jakub, but I've witnessed this, too, and I was using dreamhost and their fcgi. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: Session problems

2006-11-27 Thread Adrian Holovaty
On 11/7/06, Jakub Labath <[EMAIL PROTECTED]> wrote: > If you take a look at the attached log you will see the same child > process having the same request._req object for two different IP > addresses. Now this should not normally happen should it. The memory > address of response object also match

Re: Session problems

2006-11-07 Thread Jakub Labath
Hi All, The best I understand it, this is a mod_python problem. I put in some debugging code into session middleware to see what it is sending to who. This is my debug statement. LOGGER.debug("Process %d Request 0x%x and response 0x%x IP: %s The session key send is %s and mod python request is 0x

Re: Session problems

2006-11-06 Thread Jakub Labath
Hi All, Just to clarify few things I'm not setting either cookie nor do I have have modified the sessions framework. The sessionid in question is the one that django.auth sets when one logs-in into the admin. I am using caching but not site wide I use the cache_page decorator on few views. Are y

Re: Session problems

2006-11-03 Thread Bill de hOra
Bill de hOra wrote: > > http://www.djangoproject.com/documentation/cache/ One other thing; be sure you are only ever issuing the initial cookie with POST request and not a GET. cheers Bill --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Session problems

2006-11-03 Thread Bill de hOra
Jakub Labath wrote: > Hi All, > > I have serious problem with my django websites. > I've experienced random user switching. > > User A logs in and user B logs in they both surf the site for a bit > then all of a sudden the user B is now user A. > > So far I tracked it down to the fact that the

Re: Session problems

2006-11-03 Thread Russell Keith-Magee
On 11/4/06, Jakub Labath <[EMAIL PROTECTED]> wrote: > > User A logs in and user B logs in they both surf the site for a bit > then all of a sudden the user B is now user A. Are you using the caching framework, or is there a proxy cache (e.g., squid) between the users and your web site? It sounds

Re: Session problems

2006-11-03 Thread argh44z
On Nov 3, 2:35 pm, "Jakub Labath" <[EMAIL PROTECTED]> wrote: > Hi argh44z, > > But did you have the same problem? Was the same sessionid sent to > different clients? Yes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Session problems

2006-11-03 Thread Jakub Labath
Hi argh44z, But did you have the same problem? Was the same sessionid sent to different clients? Thanks for help On 11/3/06, argh44z <[EMAIL PROTECTED]> wrote: > > On Nov 3, 12:26 pm, "argh44z" <[EMAIL PROTECTED]> wrote: > > On Nov 3, 10:23 am, "Jakub Labath" <[EMAIL PROTECTED]> wrote: > > > >

Re: Session problems

2006-11-03 Thread argh44z
On Nov 3, 10:23 am, "Jakub Labath" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have serious problem with my django websites. > I've experienced random user switching. I experienced this on my site. I figured it was some sort of weird race condition since it only happened every once in a while. I

Re: Session problems

2006-11-03 Thread argh44z
On Nov 3, 12:26 pm, "argh44z" <[EMAIL PROTECTED]> wrote: > On Nov 3, 10:23 am, "Jakub Labath" <[EMAIL PROTECTED]> wrote: > > > Hi All BTW, I'm using a completely different envionment than you. lighttpd with preforked fastcgi processes. --~--~-~--~~~---~--~~ You