PHP 4.0 Bug #5887 Updated: Difficulty with session handlers

From: Date: Wed, 02 Aug 2000 17:36:18 +0000
Subject: PHP 4.0 Bug #5887 Updated: Difficulty with session handlers
Groups: php.dev 
Request: Send a blank email to php-dev+get-27474@lists.php.net to get a copy of this message
ID: 5887 User Update by: michael@michaelsmacshack.com Status: Feedback Bug Type: Session related Description: Difficulty with session handlers I see that you ask to check the latest cvs. I pulled the code for mod_files.h/c and php_session.h/c. Recompiled PHP4 pl2l with these changes. It still has problems. Use of session_module_name(user) for example appears to set the handlers to'user', but the value returned is files. If a subsequent call is make as session_module_name(); the current state ('user') is returned. So it look like we're trying to set the correct state, but not returning the "changed" state. The above is minor. It also appears that the session_module_name call *must* occur before the setup of the "user" handlers. Otherwize we get an error with the session_start call complainingabout not being able to initialize the session. (see original report). If session_module_name(files) is made and there are no user handlers, all is well as would be expected. if session_module_name(user) is made with user hadlers then defined, things are not well. No errors are reported, but registered varriables are not retained. The above is with no session.save_handler set in PHP.ini. Again, if session.save_handler is set for either files or user, that respective mode works but not the other. Is there some other file(s) that I should have also included? Am I doing the correct steps? e.g. session_module_name followed by setting up the handlers.... Full Bug description available at: http://bugs.php.net/?id=5887

« previous php.dev (#27474) next »