in reply to Shared between mod_perl processes?

One common way is to use CGI::Session to keep track of user sessions, and you can put anything you want in it. It has several drivers, a standard one is to save the session in files in the /tmp directory.

If you really want to share data between different processes in memory on the same machine , you can use IPC::Shareable. It's not faster than database storage, I think it internally uses Storable.

Replies are listed 'Best First'.
Re^2: Shared between mod_perl processes?
by perrin (Chancellor) on Aug 19, 2005 at 19:19 UTC
    IPC::Shareable is quite slow. If you want to share data fast, use something like Cache::FastMmap or BerkeleyDB instead.