google-code-export / joomla15captcha

Automatically exported from code.google.com/p/joomla15captcha
1 stars 1 forks source link

Session restart bug #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This makes plugin more compatible with with joomla session system.

Found:
        if ($handler == 'none') {
            ini_set( 'session.save_handler', 'files' );
        } else {
            ini_set( 'session.save_handler', 'user' );
            $sessionstorage = new JSessionStorageDatabase();
        }
Replace:
            //ini_set( 'session.save_handler', 'user' );
            //$sessionstorage = new JSessionStorageDatabase();
With:
            JSessionStorage::getInstance($handler)->register();
in captcha.php

Original issue reported on code.google.com by katalo...@gmail.com on 5 Feb 2010 at 7:39