Re: [PHP] Customized Session Handler can not work for PHP 5.1.6 andCentOS 5.5

2012-04-16 Thread Mingda
and no doc mentioned this!!! My suggestions is using PHP Version 5.2.6 or later to using such feature. Mingda On 2012/4/16 10:45, Tommy Pham wrote: On Sat, Apr 14, 2012 at 9:27 AM, Mingda wrote: Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_sa

[PHP] Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS5.5

2012-04-15 Thread Mingda
Sorry, wrong link provided, correct link is: http://stackoverflow.com/questions/10150296/cant-make-custom-session-save-handler-workno-registered-method-called-in-cent#comment13018050_10150327 On 2012/4/15 0:27, Mingda wrote: Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a

Re: [PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, Thanks, it's originally is /var/lib/php/session, I double it's privilege problem, so changed to /tmp. And I Followed your advice for setenforce off, but can't make it work. Mingda On 2012/4/16 14:13, Alain Williams wrote: On Sun, Apr 15, 2012 at 12:27:00AM +0800, Mingda

[PHP] Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS5.5

2012-04-15 Thread Mingda
TIMESTAMP) . ')'); } return true; } public static function destroy($sid) { global $db; $db->exec('DELETE FROM sessions WHERE sid = "' . $db->escape($sid) . '"'); return true; } public static function gc($lifetime)

[PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and ubuntu system). I just want to use a customized session save handler to be triggered, so that I

[PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and ubuntu system). I just want to use a customized session save handler to be triggered, so that I

[PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Mingda
Hi, All, I can't see the post I sent several hours ago, if repeated, please reply to this one. Thanks! System: CentOS 5.5; PHP version is 5.1.6. I met a strange problem associate with session_save_handler in current environment(The same code can work well in my local windows platform and ub