Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^4: CGI::Session in modperl data is inconsistent

by keenlearner (Acolyte)
on May 28, 2012 at 08:42 UTC ( #972794=note: print w/ replies, xml ) Need Help??

in reply to Re^3: CGI::Session in modperl data is inconsistent
in thread CGI::Session in modperl data is inconsistent

Hi, yeah I am aware of the problem of not showing the code but my code is just too big and libraries in multiple file calling each other which make it impossible to summarize the code. So I have to go this way.

But finally I have found the cause. After update the session I have to undef($session) to destroy the session from memory instead of $session->flush() , because calling flush function only write data from memory to file and does not destroy the $session from cache MEMORY, when call CGI::Session->load($sessionId) with another child process, it will load the session that is still cache in memory by modperl that have the old value. So the one that's not updated will overwrite the session db file with the old value.

Comment on Re^4: CGI::Session in modperl data is inconsistent

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972794]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2015-11-28 20:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (744 votes), past polls