server logs: PHP Warning: session_start(): Cannot find save handler 'mm'
Results 1 to 3 of 3

Thread: server logs: PHP Warning: session_start(): Cannot find save handler 'mm'

  1. #1
    Member
    Join Date
    Sep 2010
    Posts
    30

    server logs: PHP Warning: session_start(): Cannot find save handler 'mm'

    good evening dear experts, hello dear PHP-experts, ,



    i have got some issues with a server where a wordpress - installation runs.



    if i have a closer look at the error-logs i see a lot of :

    server logs: PHP Warning: session_start(): Cannot find save handler 'mm'

    any idea what i can do here note : i am on PHP version 5xy





    see some data out of the php-configuration not sure if they help here;

    Session Support enabled
    Registered save handlers files user
    Registered serializer handlers php_serialize php php_binary
    Directive Local Value Master Value
    session.auto_start Off Off
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_httponly Off Off
    session.cookie_lifetime 3600 3600
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file /dev/urandom /dev/urandom
    session.entropy_length 32 32
    session.gc_divisor 1000 1000
    session.gc_maxlifetime 3600 3600
    session.gc_probability 1 1
    session.hash_bits_per_character 5 5
    session.hash_function 0 0
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler mm mm
    session.save_path no value no value
    session.serialize_handler php php
    session.upload_progress.cleanup On On
    session.upload_progress.enabled On On
    session.upload_progress.freq 1% 1%
    session.upload_progress.min_freq 1 1
    session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
    session.upload_progress.prefix upload_progress_ upload_progress_
    session.use_cookies On On
    session.use_only_cookies On On
    session.use_strict_mode Off Off
    session.use_trans_sid 0 0
    what can i do now?!

  2. #2
    Member
    Join Date
    Sep 2010
    Posts
    30
    hello dear all

    some more investigations:

    This error means that our session can not be saved by our session save handler. As we see i am using mm session save handler which stands for Shared Memory.
    From php.net: To use shared memory allocation (mm) for session storage configure PHP --with-mm[=DIR] .

    we probably need to install php Shared Memory extension to use this kind of session handler: http://php.net/manual/en/book.shmop.php
    Default php session handler is file handler which store your session in files on file system. This handler do not need any additional extension.
    see some more infos rearding the sessions:
    https://silvermapleweb.com/using-the.../#comment-3355

    well - now i think that i have to rework the configuration

  3. #3
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    8,525
    Yes, either install shmop support, or change the session handler before any session work happens:

    PHP Code:
    ini_set("session.save_handler""files"); //use the filesystem to store session data

    session_start(); 
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •