in reply to Apache::Session::MySql don't save data

Apache::Session doesn't save changes until it goes out of scope. If you put a session object in a global, as you do here with "our %session", it will never go out of scope. You can put it in a lexical variable or explicitly undef %session at the end of every request.

Also... MySQL 6.0.2 Alpha?!! Are you kidding me? I hope you enjoy crashes and debugging.

  • Comment on Re: Apache::Session::MySql don't save data

Replies are listed 'Best First'.
Re^2: Apache::Session::MySql don't save data
by way (Sexton) on Feb 21, 2009 at 05:44 UTC

    No, in my opinion it isn't, the implementation of persistent variables is in charge of the developer but when the reference count reaches zero, launch DESTROY and saves the values, in this case.

    It's not necessary to call undef, perhaps you are talking about mod_perl.

    lol! yes! i love the lastest thing so i can improve my knowledge, MySql6 has new feature and it's good to learn, i have this server for more than a year and never crash, don't be panic! of course i use it on my pc, never think in production enviroment!

    Cheers!