in reply to Re^2: Session management
in thread Session management

You are making guesses about what will be faster. Have you done any benchmarks? In my benchmarks, simple database access with MySQL based on a primary key is faster than the shared memory options available for Perl. This is because the perl data has to be serialized before writing to shared memory and de-serialized on the other end, and because the memory chunks tend to be quite large and require reading or writing much more data than the small piece needed for a single session.

If you are really having problems with the performance of database storage (and have already followed the performance suggestions in the DBI documentation) you should look at BerkeleyDB, which uses shared memory for caching. That's the fastest option. Cache::FastMmap is also fast, but is a cache and can drop data if it gets full, so think about how you plan to use it.