On Tuesday, November 3, 2015 at 5:12:32 PM UTC-5, Richard wrote:
>
> Thank you for clarification I really appreciate...
>
> Also about previous posted kind of pseudo code above this work better in
> case var1 is not yet defined :
>
> elif 'var1' in session:
> del(session.var1)
>
Sure, or
Thank you for clarification I really appreciate...
Also about previous posted kind of pseudo code above this work better in
case var1 is not yet defined :
elif 'var1' in session:
del(session.var1)
On Tue, Nov 3, 2015 at 4:41 PM, Anthony wrote:
> Am I right in my understanding that sess
>
> Am I right in my understanding that session.keys get write into session
> file only once when it get define for a given request and in the next
> request if the session.key1 is still there (unchanged) it won't be re-write
> to session file?
>
Writes to the session file are not granular --
The data are not the same or I can make this assomption since they can
change each time the controller function it calls... The controller take
parameters into vars and make db query and render a resulting table...
There is numerous differents parameters and the requested data are by
nature changin
Yes, simply making the check for the session keys to see if cleanup is
needed should add minimal overhead. Likewise, if the deleting itself is
infrequent (or if it tends to occur when you have other session changes
that need to be written to the file anyway), then there shouldn't be much
additi
Thank you Anthony, I appreciate you input... I was concern about exactly
that, I mean keep clean up the session each request has a cost... I will
need to make a check, it would be logic that if the session keys to be are
not present in session that the only overhead should be the clean up
funciton
On Tuesday, November 3, 2015 at 2:04:21 PM UTC-5, Richard wrote:
>
> There is large amount of that data that why I have this concern...
>
You might want to do some testing (i.e., checking response times and RAM
usage) before bothering to manage session keys. Note, the session data for
a given us
There is large amount of that data that why I have this concern...
Is cleaning the sessions/* files delete data put in session?
Richard
On Tue, Nov 3, 2015 at 1:59 PM, Anthony wrote:
> I'm not sure there is any need to clean up individual sessions unless you
> are storing a large amount of dat
I'm not sure there is any need to clean up individual sessions unless you
are storing a large amount of data. On the other hand, you might want to
clean up expired session files once in a while -- there is a script for
that.
Anthony
On Tuesday, November 3, 2015 at 1:43:47 PM UTC-5, Richard wro
Hello,
Let say I put some data in session.var1 for reuse in case user want to
download the content of the page with the help of buttons for the purpose
which call the same function with one more prameter telling the controller
function which file format the user expect...
So you can check if f
10 matches
Mail list logo