Re: apache sessions

From: Date: Sun, 21 Aug 2005 04:47:33 +0000
Subject: Re: apache sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221022@lists.php.net to get a copy of this message
Bawt T. Eggdrop wrote:
im trying to change my session backend for apache from files to mysql. is there something php provides that allows a php script to execute before each page gets loaded in apache. if not i have to edit hundreds of php files...theres gotta be an easier way. thanks.
I may be misunderstanding your question, but if you're wanting to change the session data store that PHP uses, you can use session_set_save_handler() and write your own functions. Apache handles incoming HTTP requests, so it doesn't make sense for a PHP script to execute before it has been requested. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/

« previous php.general (#221022) next »