Share

PEAR Custom Session Handler for PHP4

Code

Programming Languages: PHP

License: OSI-Approved Open Source

Repositories

browse code, statistics, last commit on 2001-11-15 cvs -d:pserver:anonymous@pearsession.cvs.sourceforge.net:/cvsroot/pearsession login

cvs -z3 -d:pserver:anonymous@pearsession.cvs.sourceforge.net:/cvsroot/pearsession co -P modulename

Show:

What's happening?

  • Failed to initialize session module in

    I get the same error as fong. Fatal error: session_start() [function.session-start]: Failed to initialize session module in register_globals=off so that doesn't seem to be the problem. I am using: PHP 4.3.1 Mysql 3.23.54 Apache 2.0.45 thx Barry Daniels.

    2003-04-17 15:33:32 UTC by bdaniels

  • Comment: Variable error

    Logged In: YES user_id=212797 The same occurs on line 197.

    2002-03-14 21:08:07 UTC by inbowned

  • Check if session already exists

    Here is the modified session_write function, the original crashes because of the test ran to check if the session already exists. Pear error handling overrides your test, so when you try to do an insert on a session_id which already exists PEAR crashes saying "Duplicate record" function pear_session_write($session_id, $data) { /* * Writes serialized session data...

    2002-01-16 08:03:16 UTC by tleilax

  • Variable error

    On line 174 return !(DB::isError($result)); It should be return !(DB::isError($rs)); so either you use $rs or $result but not both in the same function ;)))))

    2002-01-16 07:43:16 UTC by tleilax

  • Comment: Documentation Problem

    Logged In: YES user_id=212797 Fixed in latest online version(0.9.0)

    2002-01-09 05:56:55 UTC by inbowned

  • Minor fixes and documentation

    18c18,20 < * The following PHP.INI settings are relevant: --- > * To use pearsession, simple include the pearsession php source file in > * each php file that will use session functions. In addition to this the > * following PHP.INI settings are relevant: 170c172 < return !(DB::isError($result)); --- > return !(DB::isError($rs));.

    2002-01-09 05:51:02 UTC by samj

  • Documentation Problem

    Main PHP File does not mention where it must be installed - might be a nice idea to mention that it just needs to be included in each file that uses session stuff. Cheers Marc Bown marc@inbowned.com.

    2001-12-28 00:29:17 UTC by inbowned

  • Comment: Failed to initialize session module...

    Logged In: YES user_id=236770 It works! I can't explain it, but it just does. All the data is logged to the MySQL table in all its glory. Thanks for the suggestion.

    2001-12-09 09:25:24 UTC by fong

  • Comment: Failed to initialize session module...

    Logged In: YES user_id=98303 Please turn off register_globals and let me know if the problem is solved.

    2001-12-09 08:15:18 UTC by samj

  • Failed to initialize session module...

    Fatal error: Failed to initialize session module in... I am getting this error as soon as I try to register any session variables. I have already changed session.save_handler to user, but am still getting this error. I am using MySQL and PHP 4.0.6.

    2001-12-06 15:36:57 UTC by fong

Our Numbers