Custom Session Handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

I couldn't find a developers list, so I hope this is the right list to
post to. I need to create a custom session handler for our PHP server.
We have a memcache server and so want to use that to handle our session
information. I was able to get basic session code working via the custom
PHP user handler, but it has an inherent bug that means that the
following code doesn't work:

session_start();
session_write_close();
session_start();
session_write_close();

The problem is that when write_close is called, it wipes all knowledge
of the custom session handler. It's a documented bug, but hasn't been
fixed as of yet.  So here's what I want to do to resolve this:

I want to write a custom PHP module similar to mod_user that handles the
memcache interface (mod_memcache) because this would avoid the issues of
the handlers being wiped etc...  I've effectively replicated the
mod_user code (but changed it to a blank canvas) and incorporated the
appropriate makefile & configure changes to get it built & I get the
mod_memcache.lo file as an intermediate file. However, when I install
the PHP5 module in apache and set the save handler in the php.ini to
"memcache", it tells me that it can't find the memcache handler?

What's the process for setting up a new (custom) session handler in the
php build?

Thanks in advance,

Glenn.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux