I'm probably not the first to ask this, but does anyone know a way to dynamicly change php's session handler?
I've been working on a site for a couple of months now using our own servers, unfortuantly our servers are becomming way to slow for our client base and now we're having to transfer our site out. Now here's where the problem comes in, we use a custom session handler using MySQL (session.save_handler=user) the server on the other hand it set to handle the sessions using files (session.save_handler = files).
Now supposedly the function session_module_name() is supposed to be able to not only read this value but is supposed to be able to set is as well if a value is send through it (session_module_name("user")), but everytime I run it on my Win32 development machine it just ends up crashing on one of the php dll's, and I've tryed it on our new "Free BSD 3.1" based server and it doesn't function their either. Now the funny thing is that it only crashes if you send a valid value (files or user), so if you send an invalid value (anything other than files or user) it won't crash, so obviously it's supposed to do something, but is currently broken.
So I guess my question in esscence is, does anyone know what I am doing wrong? Or failing that does anyone know another way of performing the same function using other methoods?