deepak_biswas19 has asked for the wisdom of the Perl Monks concerning the following question:

Please help me to solve the problem, I have to make a shared memory to store the session details. The apllication for which i will be implementing this technique is a huge application and has numerous hits, I dont want to use Data Base to store the session details. I am implementing the whole application using perl 5.8 and apache2.0. Could any one suggest me how to attain this.

Replies are listed 'Best First'.
Re: Shared memory
by pengwn (Acolyte) on Apr 10, 2006 at 09:21 UTC
    Using Apache Inbuild session handling:
    http://search.cpan.org/~cwest/Apache-Session-1.80/Session.pm
    http://search.cpan.org/~drolsky/Apache-Session-Wrapper-0.26/lib/Apache/Session/Wrapper.pm


    To develop your own session handling:
    http://www.cpan.org/authors/id/A/AM/AMS/Storable-2.15.tar.gz
    http://search.cpan.org/~neely/Data-Serializer-0.36/lib/Data/Serializer.pm
      Dear Monks, The above solution is fine, but i dont want to store the details in the file rather i would want to store the details in the Apache, is there any provision so that i can store the session details in APACHE VARIABLES.
Re: Shared memory
by jesuashok (Curate) on Apr 10, 2006 at 09:09 UTC
    Hi

    You can use Shared Memory. Becasue Most of the OS Supports Shared Memory.

    For Example
    Cache::SharedMemoryBackend
    MIPSIM::Memory
    As per your OS you can go ahead and use the module. You can use this Memory using Shared Memory Access modules, which are available for Perl

    "Keep pouring your ideas"
      Thanks a lot i will use that and let you guyz know.