librelist archives

« back to archive

KVSession trouble

KVSession trouble

From:
Remy Pirson
Date:
2013-04-29 @ 13:15
Hi all,

recently i replaced the standard Flask session by KVsession and i've got a
strange problem.
My web app works fine and everything is ok except for sessions. When i stay
5 or 10 seconds inactive on any webpage, session appears to have been deleted.
when i keep clicking on some links, there is no problems, it's only after 5
seconds of inactivity...

I really dont't understand. Does anybody got the solution ?

thx.

Re: [flask] KVSession trouble

From:
Adam Patterson
Date:
2013-04-29 @ 15:35
You are going to have to provide some more information before anyone will
be able to help. Code, logs, config, something.




On Mon, Apr 29, 2013 at 8:15 AM, Remy Pirson <remy.pirson@gmail.com> wrote:

> Hi all,
>
> recently i replaced the standard Flask session by KVsession and i've got a
> strange problem.
> My web app works fine and everything is ok except for sessions. When i
> stay 5 or 10 seconds inactive on any webpage, session appears to have 
been deleted.
> when i keep clicking on some links, there is no problems, it's only after 5
> seconds of inactivity...
>
> I really dont't understand. Does anybody got the solution ?
>
> thx.
>
>
>

Re: [flask] KVSession trouble

From:
Remy Pirson
Date:
2013-04-30 @ 06:28
Thx for your rapid answer,

First, my app is running on Apache webserver (mod_wsgi). When i try with
the run() method of flask (even in multithread), there is no problem. It
only appears when deployed on Apache.
I try to debug The KVsession module and i found where the problem comes
from : see line 161 :
https://github.com/mbr/flask-kvsession/blob/master/flaskext/kvsession.py#161
this line : store.get() raise a keyerror exception. Do you have some idea ?

thx.


2013/4/29 Adam Patterson <adam@adamrt.com>

> You are going to have to provide some more information before anyone will
> be able to help. Code, logs, config, something.
>
>
>
>
> On Mon, Apr 29, 2013 at 8:15 AM, Remy Pirson <remy.pirson@gmail.com>wrote:
>
>> Hi all,
>>
>> recently i replaced the standard Flask session by KVsession and i've got
>> a strange problem.
>> My web app works fine and everything is ok except for sessions. When i
>> stay 5 or 10 seconds inactive on any webpage, session appears to have
>> been deleted. when i keep clicking on some links, there is no problems,
>> it's only after 5 seconds of inactivity...
>>
>> I really dont't understand. Does anybody got the solution ?
>>
>> thx.
>>
>>
>>
>

Re: [flask] KVSession trouble

From:
Remy Pirson
Date:
2013-04-30 @ 07:45
Problem solved when replacing DicStore() by FileSystemStore()


2013/4/30 Remy Pirson <remy.pirson@gmail.com>

> Thx for your rapid answer,
>
> First, my app is running on Apache webserver (mod_wsgi). When i try with
> the run() method of flask (even in multithread), there is no problem. It
> only appears when deployed on Apache.
> I try to debug The KVsession module and i found where the problem comes
> from : see line 161 :
> https://github.com/mbr/flask-kvsession/blob/master/flaskext/kvsession.py#161
> this line : store.get() raise a keyerror exception. Do you have some idea ?
>
> thx.
>
>
>
> 2013/4/29 Adam Patterson <adam@adamrt.com>
>
>> You are going to have to provide some more information before anyone will
>> be able to help. Code, logs, config, something.
>>
>>
>>
>>
>> On Mon, Apr 29, 2013 at 8:15 AM, Remy Pirson <remy.pirson@gmail.com>wrote:
>>
>>> Hi all,
>>>
>>> recently i replaced the standard Flask session by KVsession and i've got
>>> a strange problem.
>>> My web app works fine and everything is ok except for sessions. When i
>>> stay 5 or 10 seconds inactive on any webpage, session appears to have
>>> been deleted. when i keep clicking on some links, there is no problems,
>>> it's only after 5 seconds of inactivity...
>>>
>>> I really dont't understand. Does anybody got the solution ?
>>>
>>> thx.
>>>
>>>
>>>
>>
>