Weird session behavior with mod_python

2010-11-27 Thread Thilo-Alexander Ginkel
Hello everyone, I am currently trying to debug some weird session handling issues for a Django application (Review Board), which is running on top of mod_python / Apache: What seems to happen is that authenticated user sessions are leaking and get re-used for new browser sessions that have never

Re: Weird session problem

2008-05-09 Thread [EMAIL PROTECTED]
Look at the thing I posted. The sessionid= tag is there but it seems to confuse django when there's more than just that in that header. I don't know exactly what causes it though. On May 7, 4:28 pm, finnam <[EMAIL PROTECTED]> wrote: > Isn't it just a matter of session id cookie name? You should

Re: Weird session problem

2008-05-07 Thread finnam
Isn't it just a matter of session id cookie name? You should have different session id cookies for java app server and django. On May 7, 12:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Ahh, I figured it out.  There was a java app server running on this > machine before and I for some r

Re: Weird session problem

2008-05-06 Thread [EMAIL PROTECTED]
Ahh, I figured it out. There was a java app server running on this machine before and I for some reason that caused django to choke. I removed all of them and now it works. Does this seem like a bug? --~--~-~--~~~---~--~~ You received this message because you a

Weird session problem

2008-05-06 Thread [EMAIL PROTECTED]
I am seeing a weird session problem on one machine. I have had my app up and running on one machine for a while and it works fine. I tried copying all the code to another machine, setting up django/flup/ lighttpd and then running it. The app starts up fine but then when I go to log in I get an

Re: Weird session

2007-03-14 Thread Seth Buntin
Well this didn't work: request.session["order_items"] = request.session["order_items"] + [order_item.id] Any other ideas? Is it how Django is implementing sessions or how mod_python and Apache have their child processes? Thanks. Seth --~--~-~--~~~---~--~~ You

Re: Weird session

2007-03-14 Thread Seth Buntin
Well this didn't work: request.session["order_items"] = request.session["order_items"] + [order_item.id] Any other ideas? Is it how Django is implementing sessions or how mod_python and Apache have their child processes? Thanks. Seth --~--~-~--~~~---~--~~ You

Re: Weird session

2007-03-02 Thread Malcolm Tredinnick
On Fri, 2007-03-02 at 14:37 +, Seth Buntin wrote: > I would love to tackle this issue, since it is to my advantage, but > really don't know where to start. Any ideas? I would start with the Session object itself -- have a look in django/contrib/sessions/ -- since any general solution will ne

Re: Weird session

2007-03-02 Thread Nebojša Đorđević
On Mar 2, 2007, at 04:35 , Seth Buntin wrote: > I have this: > > request.session["order_items"] = [] > > and on certain views I have: > > request.session["order_items"].append(order_item.id) Maybe is just shoot in the dark, but... Looking at SessionWrapper.__setitem__ your request.session ["or

Re: Weird session

2007-03-02 Thread Seth Buntin
I would love to tackle this issue, since it is to my advantage, but really don't know where to start. Any ideas? Seth On Mar 1, 10:59 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-03-01 at 20:17 -0800, Graham Dumpleton wrote: > > [...] > > > > I wrote: > > > > I'm wondering i

Re: Weird session

2007-03-01 Thread Malcolm Tredinnick
On Thu, 2007-03-01 at 20:17 -0800, Graham Dumpleton wrote: [...] I wrote: > > > I'm wondering if this may lead to race conditions along the lines of: > > > > > thread A creates a session > > > > > thread B creates a session > > > > > thread A stores "foo = 6

Re: Weird session

2007-03-01 Thread Seth Buntin
What type of debug code could I use? Seth On Mar 1, 10:17 pm, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: > On Mar 2, 2:57 pm, "Seth Buntin" <[EMAIL PROTECTED]> wrote: > > > That probably isn't too far off. One time it did work and it was > > weird so I might have actually got one of the thre

Re: Weird session

2007-03-01 Thread Graham Dumpleton
On Mar 2, 2:57 pm, "Seth Buntin" <[EMAIL PROTECTED]> wrote: > That probably isn't too far off. One time it did work and it was > weird so I might have actually got one of the threads to fire > correctly. Is there a way to limit the amount of threadsmod_python > uses? The threads are not created

Re: Weird session

2007-03-01 Thread Seth Buntin
That probably isn't too far off. One time it did work and it was weird so I might have actually got one of the threads to fire correctly. Is there a way to limit the amount of threads mod_python uses? Seth On Mar 1, 9:48 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Hi Seth, > > > > On F

Re: Weird session

2007-03-01 Thread Malcolm Tredinnick
Hi Seth, On Fri, 2007-03-02 at 03:35 +, Seth Buntin wrote: > I have this: > > request.session["order_items"] = [] > > and on certain views I have: > > request.session["order_items"].append(order_item.id) > > In development mode this works fine. Even when I use Firebug I see > everything

Re: Weird session

2007-03-01 Thread Seth Buntin
I have this: request.session["order_items"] = [] and on certain views I have: request.session["order_items"].append(order_item.id) In development mode this works fine. Even when I use Firebug I see everything being sent to the specific views and other areas of the site are being updated corre

Re: Weird session

2007-03-01 Thread Malcolm Tredinnick
On Thu, 2007-03-01 at 17:02 -0800, Seth Buntin wrote: > aren't working...sorry > > On Mar 1, 6:55 pm, "Seth Buntin" <[EMAIL PROTECTED]> wrote: > > I am running Apache 2.0.59 and mod_python on Windows. When I run the > > application it looks like the session variables are being set. If I > > go

Re: Weird session

2007-03-01 Thread Seth Buntin
aren't working...sorry On Mar 1, 6:55 pm, "Seth Buntin" <[EMAIL PROTECTED]> wrote: > I am running Apache 2.0.59 and mod_python on Windows. When I run the > application it looks like the session variables are being set. If I > go straight in to the development server everything is great! What a

Weird session

2007-03-01 Thread Seth Buntin
I am running Apache 2.0.59 and mod_python on Windows. When I run the application it looks like the session variables are being set. If I go straight in to the development server everything is great! What am I missing? Thanks. Seth --~--~-~--~~~---~--~~ You re